projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a92841
)
module: printk message when module signature fail taints kernel.
author
Rusty Russell
<rusty@rustcorp.com.au>
Mon, 21 Jan 2013 06:33:02 +0000
(17:03 +1030)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Mon, 21 Jan 2013 06:47:05 +0000
(17:17 +1030)
Reported-by: Chris Samuel <chris@csamuel.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
kernel/module.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/module.c
b/kernel/module.c
index eab08274ec9bf9a1e5b8c83de0f925da0aeaf761..e69a5a68766fb5a84ecae9d1709187acc2d253de 100644
(file)
--- a/
kernel/module.c
+++ b/
kernel/module.c
@@
-3192,8
+3192,13
@@
again:
#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. */