All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v9 0/4] Check codeSigning extended key usage extension
@ 2022-08-25 14:23 Lee, Chun-Yi
  2022-08-25 14:23 ` [PATCH v9,1/4] X.509: Add CodeSigning extended key usage parsing Lee, Chun-Yi
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Lee, Chun-Yi @ 2022-08-25 14:23 UTC (permalink / raw)
  To: David Howells
  Cc: Herbert Xu, David S . Miller, Ben Boeckel, Randy Dunlap,
	Malte Gell, Varad Gautam, Jarkko Sakkinen, Mimi Zohar, keyrings,
	linux-crypto, linux-kernel, Lee, Chun-Yi

NIAP PP_OS certification requests that OS need to 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.

v9:
- Rename the eku element in public_key structure to ext_key_usage.
- Fix selftest.c

v8:
- Fixed the bug of is_key_on_revocation_list() when
  CONFIG_SYSTEM_REVOCATION_LIST is not set.

v7:
- Fixed the broken function call in is_key_on_revocation_list().
  (be found by kernel test robot)
- Use a general name check_eku_by_usage() instead of check_codesign_eku().

v6:
- Add more length checking when parsing extKeyUsage and EKU's OID blob.
- Add 'usage' parameter to the comment of pkcs7_validate_trust function.

v5:
Fixed the wording in module-signing.rst.

v4:
Fixed the wording in patch description.

v3:
- Add codeSigning EKU to x509.genkey key generation config.
- Add openssl command option example for generating CodeSign EKU to
  module-signing.rst document.

v2:
Changed the help wording in the Kconfig.

Lee, Chun-Yi (4):
  X.509: Add CodeSigning extended key usage parsing
  PKCS#7: Check codeSigning EKU for kernel module and kexec pe
    verification
  modsign: Add codeSigning EKU when generating X.509 key generation
    config
  Documentation/admin-guide/module-signing.rst: add openssl command
    option example for CodeSign EKU

 Documentation/admin-guide/module-signing.rst |  6 +++
 certs/blacklist.c                            |  5 ++-
 certs/default_x509.genkey                    |  1 +
 certs/system_keyring.c                       |  4 +-
 crypto/asymmetric_keys/Kconfig               |  9 ++++
 crypto/asymmetric_keys/pkcs7_trust.c         | 43 ++++++++++++++++++--
 crypto/asymmetric_keys/selftest.c            |  2 +-
 crypto/asymmetric_keys/x509_cert_parser.c    | 25 ++++++++++++
 include/crypto/pkcs7.h                       |  4 +-
 include/crypto/public_key.h                  |  1 +
 include/keys/system_keyring.h                |  7 +++-
 include/linux/oid_registry.h                 |  5 +++
 12 files changed, 101 insertions(+), 11 deletions(-)

-- 
2.26.2


^ permalink raw reply	[flat|nested] 14+ messages in thread
* [PATCH v9 0/4] Check codeSigning extended key usage extension
@ 2022-07-13  4:24 Lee, Chun-Yi
  2022-07-13  4:24 ` [PATCH v9,4/4] Documentation/admin-guide/module-signing.rst: add openssl command option example for CodeSign EKU Lee, Chun-Yi
  0 siblings, 1 reply; 14+ messages in thread
From: Lee, Chun-Yi @ 2022-07-13  4:24 UTC (permalink / raw)
  To: David Howells
  Cc: Herbert Xu, David S . Miller, Ben Boeckel, Randy Dunlap,
	Malte Gell, Varad Gautam, Jarkko Sakkinen, Mimi Zohar, keyrings,
	linux-crypto, linux-kernel, Lee, Chun-Yi

NIAP PP_OS certification requests that OS need to 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.

v9:
- Rename the eku element in public_key structure to ext_key_usage.
- Fix selftest.c

v8:
- Fixed the bug of is_key_on_revocation_list() when
  CONFIG_SYSTEM_REVOCATION_LIST is not set.

v7:
- Fixed the broken function call in is_key_on_revocation_list().
  (be found by kernel test robot)
- Use a general name check_eku_by_usage() instead of check_codesign_eku().

v6:
- Add more length checking when parsing extKeyUsage and EKU's OID blob.
- Add 'usage' parameter to the comment of pkcs7_validate_trust function.

v5:
Fixed the wording in module-signing.rst.

v4:
Fixed the wording in patch description.

v3:
- Add codeSigning EKU to x509.genkey key generation config.
- Add openssl command option example for generating CodeSign EKU to
  module-signing.rst document.

v2:
Changed the help wording in the Kconfig.

Lee, Chun-Yi (4):
  X.509: Add CodeSigning extended key usage parsing
  PKCS#7: Check codeSigning EKU for kernel module and kexec pe
    verification
  modsign: Add codeSigning EKU when generating X.509 key generation
    config
  Documentation/admin-guide/module-signing.rst: add openssl command
    option example for CodeSign EKU

 Documentation/admin-guide/module-signing.rst |  6 +++
 certs/blacklist.c                            |  5 ++-
 certs/default_x509.genkey                    |  1 +
 certs/system_keyring.c                       |  4 +-
 crypto/asymmetric_keys/Kconfig               |  9 ++++
 crypto/asymmetric_keys/pkcs7_trust.c         | 43 ++++++++++++++++++--
 crypto/asymmetric_keys/selftest.c            |  2 +-
 crypto/asymmetric_keys/x509_cert_parser.c    | 25 ++++++++++++
 include/crypto/pkcs7.h                       |  4 +-
 include/crypto/public_key.h                  |  1 +
 include/keys/system_keyring.h                |  7 +++-
 include/linux/oid_registry.h                 |  5 +++
 12 files changed, 101 insertions(+), 11 deletions(-)

-- 
2.26.2


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

end of thread, other threads:[~2022-08-31  8:30 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-25 14:23 [PATCH v9 0/4] Check codeSigning extended key usage extension Lee, Chun-Yi
2022-08-25 14:23 ` [PATCH v9,1/4] X.509: Add CodeSigning extended key usage parsing Lee, Chun-Yi
2022-08-26 20:23   ` Jarkko Sakkinen
2022-08-31  7:31     ` joeyli
2022-08-25 14:23 ` [PATCH v9,2/4] PKCS#7: Check codeSigning EKU for kernel module and kexec pe verification Lee, Chun-Yi
2022-08-28  3:34   ` Jarkko Sakkinen
2022-08-31  7:48     ` joeyli
2022-08-25 14:23 ` [PATCH v9,3/4] modsign: Add codeSigning EKU to the default Lee, Chun-Yi
2022-08-25 14:23 ` [PATCH v9,4/4] Documentation/admin-guide/module-signing.rst: add openssl command option example for CodeSign EKU Lee, Chun-Yi
2022-08-28  3:35   ` Jarkko Sakkinen
2022-08-31  7:54     ` joeyli
2022-08-28  3:30 ` [PATCH v9 0/4] Check codeSigning extended key usage extension Jarkko Sakkinen
2022-08-31  8:29   ` joeyli
  -- strict thread matches above, loose matches on Subject: below --
2022-07-13  4:24 Lee, Chun-Yi
2022-07-13  4:24 ` [PATCH v9,4/4] Documentation/admin-guide/module-signing.rst: add openssl command option example for CodeSign EKU Lee, Chun-Yi

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.