Skip to content

Add digitalSignature enforcement keyring restrictions

Eric Snowberg keyrings linux-crypto linux-integrity linux-security-module lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 4 repliesIn review
  2. v13 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- No new code changes
- Added Reviewed-by and ACKs
- Updated code comments requested by Jarkko

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KEYS: DigitalSignature link restrictioncerts/system_keyring.c crypto/asymmetric_keys/restrict.c include/crypto/public_key.h +1 more+116 -01 reply
2/3integrity: Enforce digitalSignature usage in the ima and evm keyringssecurity/integrity/digsig.c security/integrity/evm/Kconfig security/integrity/ima/Kconfig+6 -43 replies
3/3integrity: Remove EXPERIMENTAL from Kconfigsecurity/integrity/ima/Kconfig+1 -10 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchJarkko SakkinenMimi Zohar
1/3R-b
2/3A-b
3/3A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] Add digitalSignature enforcement keyring restrictions

X.509 certificates may contain a key usage extension [1]. The key usage extension defines the purpose of the certificate. One area of interest is the digitalSignature. The digitalSignature usage is typically used for code signing (integrity).

Within the "Add CA enforcement key restrictions" [2] series, the digitalSignature is being saved. This series builds upon the previous one and adds restrictions based on the digitalSignature usage.

A new keyring restriction called restrict_link_by_digsig is added. The new restriction only allows keys that contain digitalSignature usage within it.

With this update, keys can be filtered based on digitalSignature. The first two keyrings to use this restriction are the .ima and .evm keyrings. Only keys containing a digitalSignature shall be allowed into either keyring.

1. https://www.rfc-editor.org/rfc/rfc5280#section-4.2.1.3
2. https://lore.kernel.org/all/[email protected]/T/

Changelog:
v2:
- No new code changes
- Added Reviewed-by and ACKs
- Updated code comments requested by Jarkko

Eric Snowberg (3):
KEYS: DigitalSignature link restriction
integrity: Enforce digitalSignature usage in the ima and evm keyrings
integrity: Remove EXPERIMENTAL from Kconfig

 certs/system_keyring.c            | 50 +++++++++++++++++++++++++++++++
 crypto/asymmetric_keys/restrict.c | 44 +++++++++++++++++++++++++++
 include/crypto/public_key.h       | 11 +++++++
 include/keys/system_keyring.h     | 11 +++++++
 security/integrity/digsig.c       |  4 +--
 security/integrity/evm/Kconfig    |  3 +-
 security/integrity/ima/Kconfig    |  5 ++--
 7 files changed, 123 insertions(+), 5 deletions(-)

base-commit: 44c026a73be8038f03dbdeef028b642880cf1511

Signature · 1 line
2.27.0