keyrings.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Check codeSigning extended key usage extension
@ 2020-11-05  4:24 Lee, Chun-Yi
  2020-11-05  4:24 ` [PATCH v2 1/2] X.509: Add CodeSigning extended key usage parsing Lee, Chun-Yi
  2020-11-05  4:24 ` [PATCH v2 2/2] PKCS#7: Check codeSigning EKU for kernel module and kexec pe verification Lee, Chun-Yi
  0 siblings, 2 replies; 3+ messages in thread
From: Lee, Chun-Yi @ 2020-11-05  4:24 UTC (permalink / raw)
  To: David Howells
  Cc: Herbert Xu, David S . Miller, Ben Boeckel, Randy Dunlap,
	keyrings, linux-crypto, linux-kernel, Lee, Chun-Yi

NIAP PP_OS certification requests that the OS shall validate the
CodeSigning extended key usage extension field for integrity
verifiction of exectable code:

    https://www.niap-ccevs.org/MMO/PP/-442-/
        FIA_X509_EXT.1.1

This patchset adds the logic for parsing the codeSigning EKU extension
field in X.509. And checking the CodeSigning EKU when verifying
signature of kernel module or kexec PE binary in PKCS#7.

v2:
Changed the help wording in the Kconfig.

Lee, Chun-Yi (2):
  X.509: Add CodeSigning extended key usage parsing
  PKCS#7: Check codeSigning EKU for kernel module and kexec pe
    verification

 certs/system_keyring.c                    |  2 +-
 crypto/asymmetric_keys/Kconfig            |  9 ++++++++
 crypto/asymmetric_keys/pkcs7_trust.c      | 37 ++++++++++++++++++++++++++++---
 crypto/asymmetric_keys/x509_cert_parser.c | 24 ++++++++++++++++++++
 include/crypto/pkcs7.h                    |  3 ++-
 include/crypto/public_key.h               |  1 +
 include/linux/oid_registry.h              |  5 +++++
 7 files changed, 76 insertions(+), 5 deletions(-)

-- 
2.16.4


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

end of thread, other threads:[~2020-11-05  4:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-05  4:24 [PATCH v2 0/2] Check codeSigning extended key usage extension Lee, Chun-Yi
2020-11-05  4:24 ` [PATCH v2 1/2] X.509: Add CodeSigning extended key usage parsing Lee, Chun-Yi
2020-11-05  4:24 ` [PATCH v2 2/2] PKCS#7: Check codeSigning EKU for kernel module and kexec pe verification Lee, Chun-Yi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).