summaryrefslogtreecommitdiff
path: root/kernel/module.c
diff options
context:
space:
mode:
authorJessica Yu <jeyu@kernel.org>2020-01-15 15:49:31 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-07 14:47:38 +0200
commit1a8c5fbe2f1dab0787165711e8fd7322112f8b71 (patch)
tree91062ecfaac523a3f95780de39893cbd78311535 /kernel/module.c
parent120589bb09707b2ea13564542affc7e17b1264b3 (diff)
modsign: print module name along with error message
[ Upstream commit e9f35f634e099894f4d6c3b039cd3de5281ee637 ] 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> Signed-off-by: Sasha Levin <sashal@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 ab1f97cfe18d..0338fdd6acd8 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -2917,7 +2917,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;
}