* [PATCH] modsign: print module name along with error message
@ 2020-01-15 16:47 Jessica Yu
0 siblings, 0 replies; only message in thread
From: Jessica Yu @ 2020-01-15 16:47 UTC (permalink / raw)
To: linux-kernel; +Cc: Jessica Yu
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>
---
This patch was sent last year, but apparently I forgot to pursue getting it
merged (it had a dependency on the lockdown patchset). Now that's merged,
I'm resending it.
[1] https://lore.kernel.org/lkml/20180530090830.20737-4-jeyu@kernel.org/
kernel/module.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
--
2.16.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-01-15 16:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-15 16:47 [PATCH] modsign: print module name along with error message Jessica Yu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome