projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6510223
)
modsign: use all trusted keys to verify module signature
author
Ke Wu
<mikewu@google.com>
Tue, 6 Nov 2018 23:21:30 +0000
(15:21 -0800)
committer
Jessica Yu
<jeyu@kernel.org>
Wed, 7 Nov 2018 13:41:41 +0000
(14:41 +0100)
Make mod_verify_sig to use all trusted keys. This allows keys in
secondary_trusted_keys to be used to verify PKCS#7 signature on a
kernel module.
Signed-off-by: Ke Wu <mikewu@google.com>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
kernel/module_signing.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/module_signing.c
b/kernel/module_signing.c
index f2075ce8e4b369c8e056a81ab18ccab271bbe192..6b9a926fd86b60f3bb13c939a7a345511d9692dd 100644
(file)
--- a/
kernel/module_signing.c
+++ b/
kernel/module_signing.c
@@
-83,6
+83,7
@@
int mod_verify_sig(const void *mod, struct load_info *info)
}
return verify_pkcs7_signature(mod, modlen, mod + modlen, sig_len,
- NULL, VERIFYING_MODULE_SIGNATURE,
+ VERIFY_USE_SECONDARY_KEYRING,
+ VERIFYING_MODULE_SIGNATURE,
NULL, NULL);
}