From: Jessica Yu Date: Wed, 15 Jan 2020 14:49:31 +0000 (+0100) Subject: modsign: print module name along with error message X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e9f35f634e099894f4d6c3b039cd3de5281ee637;p=linux.git 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 --- diff --git a/kernel/module.c b/kernel/module.c index d4d876172e9d1..2b5f9c4748bc9 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; }