All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] modsign: use all trusted keys to verify module signature
@ 2018-10-22 22:26 Ke Wu
  2018-10-30 19:11 ` Ke Wu
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Ke Wu @ 2018-10-22 22:26 UTC (permalink / raw)
  To: Jessica Yu, David Howells; +Cc: Ke Wu, linux-kernel

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>
---
 kernel/module_signing.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/module_signing.c b/kernel/module_signing.c
index f2075ce8e4b3..a8b923ba1a39 100644
--- a/kernel/module_signing.c
+++ b/kernel/module_signing.c
@@ -83,6 +83,6 @@ 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,
+				      (void *)1UL, VERIFYING_MODULE_SIGNATURE,
 				      NULL, NULL);
 }
-- 
2.19.1.568.g152ad8e336-goog


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-11-07 14:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-22 22:26 [PATCH] modsign: use all trusted keys to verify module signature Ke Wu
2018-10-30 19:11 ` Ke Wu
2018-10-31  9:36 ` Jessica Yu
2018-11-05 19:13   ` Ke Wu
2018-11-06 12:35 ` Jessica Yu
2018-11-06 23:21 ` [PATCH v2] " Ke Wu
2018-11-06 23:23   ` Ke Wu
2018-11-07 14:37     ` Jessica Yu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.