summaryrefslogtreecommitdiff
path: root/kernel/module.c
diff options
context:
space:
mode:
authorJessica Yu <jeyu@kernel.org>2020-01-15 15:49:31 +0100
committerJessica Yu <jeyu@kernel.org>2020-01-15 15:49:31 +0100
commite9f35f634e099894f4d6c3b039cd3de5281ee637 (patch)
tree400a029a3ec200094b2b3b0c4a045bc35db1d858 /kernel/module.c
parentf6d061d617124abbd55396a3bc37b9bf7d33233c (diff)
modsign: print module name along with error message
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>
Diffstat (limited to 'kernel/module.c')
-rw-r--r--kernel/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/module.c b/kernel/module.c
index d4d876172e9d..2b5f9c4748bc 100644
--- 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;
}