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>
This commit is contained in:
Jessica Yu 2020-01-15 15:49:31 +01:00 committed by Greg Kroah-Hartman
parent 120589bb09
commit 1a8c5fbe2f
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}