Commit e9f35f63 authored by Jessica Yu's avatar Jessica Yu

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: default avatarJessica Yu <jeyu@kernel.org>
parent f6d061d6
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment