Skip to content

KEYS: validate certificate trust with selected owner or builtin key

Dmitry Kasatkin lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 2 repliesIn review

Changes to v1 from the cover letter

* key id matching code from asymmetric_type.c is reused in the patch

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KEYS: make key id matching as a dedicated functioncrypto/asymmetric_keys/asymmetric_keys.h crypto/asymmetric_keys/asymmetric_type.c+33 -191 reply
2/3KEYS: validate certificate trust only with selected owner keyDocumentation/kernel-parameters.txt crypto/asymmetric_keys/x509_public_key.c+22 -00 replies
3/3KEYS: validate certificate trust only with builtin keysDocumentation/kernel-parameters.txt crypto/asymmetric_keys/x509_public_key.c include/linux/key.h +1 more+10 -30 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/3] KEYS: validate certificate trust with selected owner or builtin key

Instead of allowing public keys, with certificates signed by any key on the system trusted keyring, to be added to a trusted keyring, this patch set further restricts the certificates to those signed by a particular key or builtin keys on the system keyring.

This patch defines a new kernel parameter 'keys_ownerid={id: | builtin}' to use specific key or any builtin key.

Changes to v1:
* key id matching code from asymmetric_type.c is reused in the patch

Thanks,
Dmitry

Dmitry Kasatkin (3):
KEYS: make key id matching as a dedicated function
KEYS: validate certificate trust only with selected owner key
KEYS: validate certificate trust only with builtin keys

 Documentation/kernel-parameters.txt      |  5 ++++
 crypto/asymmetric_keys/asymmetric_keys.h |  2 ++
 crypto/asymmetric_keys/asymmetric_type.c | 50 ++++++++++++++++++++------------
 crypto/asymmetric_keys/x509_public_key.c | 26 +++++++++++++++--
 include/linux/key.h                      |  1 +
 kernel/system_keyring.c                  |  1 +
 6 files changed, 64 insertions(+), 21 deletions(-)
Signature · 1 line
1.9.1