Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64748a2c authored by Rusty Russell's avatar Rusty Russell
Browse files

module: printk message when module signature fail taints kernel.

parent 9a928415
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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. */