提交 64748a2c 编写于 作者: R Rusty Russell

module: printk message when module signature fail taints kernel.

Reported-by: NChris Samuel <chris@csamuel.org>
Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
上级 9a928415
......@@ -3192,8 +3192,13 @@ static int load_module(struct load_info *info, const char __user *uargs,
#ifdef CONFIG_MODULE_SIG
mod->sig_ok = info->sig_ok;
if (!mod->sig_ok)
if (!mod->sig_ok) {
printk_once(KERN_NOTICE
"%s: module verification failed: signature and/or"
" required key missing - tainting kernel\n",
mod->name);
add_taint_module(mod, TAINT_FORCED_MODULE);
}
#endif
/* Now module is in final location, initialize linked lists, etc. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部