projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6d061d
)
modsign: print module name along with error message
author
Jessica Yu
<jeyu@kernel.org>
Wed, 15 Jan 2020 14:49:31 +0000
(15:49 +0100)
committer
Jessica Yu
<jeyu@kernel.org>
Wed, 15 Jan 2020 14:49:31 +0000
(15:49 +0100)
It is useful to know which module failed signature verification, so
print the module name along with the error message.
Signed-off-by: Jessica Yu <jeyu@kernel.org>
kernel/module.c
patch
|
blob
|
history
diff --git
a/kernel/module.c
b/kernel/module.c
index d4d876172e9d15a7b001d819f6507caedb06c92d..2b5f9c4748bc90e7efa56dc460ba331039a034d5 100644
(file)
--- a/
kernel/module.c
+++ b/
kernel/module.c
@@
-2882,7
+2882,7
@@
static int module_sig_check(struct load_info *info, int flags)
reason = "Loading of module with unavailable key";
decide:
if (is_module_sig_enforced()) {
- pr_notice("%s
is rejected\n"
, reason);
+ pr_notice("%s
: %s is rejected\n", info->name
, reason);
return -EKEYREJECTED;
}