Skip to content

RFC ima: use the system blacklist in lieu of the IMA blacklist keyring

Mimi Zohar keyrings linux-integrity lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3certs: blacklist: define skid: entries and add is_key_blacklisted()certs/Kconfig certs/blacklist.c include/keys/system_keyring.h+68 -280 replies
2/3integrity: use is_key_blacklisted() in asymmetric_verify()security/integrity/digsig_asymmetric.c+13 -120 replies
3/3ima: remove the experimental IMA blacklist keyringinclude/keys/system_keyring.h security/integrity/ima/Kconfig security/integrity/ima/Makefile +1 more+1 -760 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/3] ima: use the system blacklist in lieu of the IMA blacklist keyring

The experimental IMA blacklist keyring accepts any certificate signed by a key on the builtin trusted keyring. The certificate being revoked was created by such a key, so root can add it to the blacklist. Nothing differentiates the authority to sign from the authority to revoke.

The system blacklist already supports signed updates (CONFIG_SYSTEM_BLACKLIST_AUTH_UPDATE), but cannot revoke a key that is already loaded on a keyring.

This series defines "skid:<hex>" entries and adds is_key_blacklisted() to the system blacklist, has IMA's asymmetric_verify() call it on the key it finds, and removes the IMA blacklist keyring.

1/3 certs: blacklist: define skid: entries and add is_key_blacklisted() 2/3 integrity: use is_key_blacklisted() in asymmetric_verify() 3/3 ima: remove the experimental IMA blacklist keyring

Revocations for keys on the IMA keyring are now "skid:<hex>" entries in the system blacklist.

Mimi Zohar (3):
certs: blacklist: define skid: entries and add is_key_blacklisted()
integrity: use is_key_blacklisted() in asymmetric_verify()
ima: remove the experimental IMA blacklist keyring

 certs/Kconfig                          |  7 ++-
 certs/blacklist.c                      | 81 ++++++++++++++++++--------
 include/keys/system_keyring.h          | 22 +++----
 security/integrity/digsig_asymmetric.c | 25 ++++----
 security/integrity/ima/Kconfig         | 13 +----
 security/integrity/ima/Makefile        |  1 -
 security/integrity/ima/ima_mok.c       | 49 ----------------
 7 files changed, 82 insertions(+), 116 deletions(-)
 delete mode 100644 security/integrity/ima/ima_mok.c

--
2.56.0