[PATCH 0/3] keys: Add well known IDs for fs-verity/dm-verity keys

Andrew Halaney posted 3 patches 1 week, 3 days ago
Documentation/security/keys/core.rst | 13 ++++++++
drivers/md/dm-verity-verify-sig.c    |  3 ++
fs/verity/signature.c                |  2 ++
include/linux/key.h                  |  2 ++
include/uapi/linux/keyctl.h          |  2 ++
security/keys/process_keys.c         | 58 ++++++++++++++++++++++++++++++++++++
6 files changed, 80 insertions(+)
[PATCH 0/3] keys: Add well known IDs for fs-verity/dm-verity keys
Posted by Andrew Halaney 1 week, 3 days ago
This more or less follows the bpf keyring approach, allowing userspace
to easily find the keys instead of having to parse /proc/keys.

Signed-off-by: Andrew Halaney <andrew@amutable.com>
---
Andrew Halaney (3):
      keys: add KEY_SPEC_DM_VERITY_KEYRING
      keys: add KEY_SPEC_FS_VERITY_KEYRING
      Documentation: keys: document IDs added since KEY_SPEC_REQKEY_AUTH_KEY

 Documentation/security/keys/core.rst | 13 ++++++++
 drivers/md/dm-verity-verify-sig.c    |  3 ++
 fs/verity/signature.c                |  2 ++
 include/linux/key.h                  |  2 ++
 include/uapi/linux/keyctl.h          |  2 ++
 security/keys/process_keys.c         | 58 ++++++++++++++++++++++++++++++++++++
 6 files changed, 80 insertions(+)
---
base-commit: 1a1de54f7369cd2b5bac0f265910e60ad3a6b4c3
change-id: 20260914-ajhalaney-dmverity-key-identifier-4187b6233be5

Best regards,
-- 
Andrew Halaney <andrew@amutable.com>
Re: [PATCH 0/3] keys: Add well known IDs for fs-verity/dm-verity keys
Posted by Christian Brauner 1 week, 2 days ago
On Mon, Sep 14, 2026 at 11:41:41AM -0500, Andrew Halaney wrote:
> This more or less follows the bpf keyring approach, allowing userspace
> to easily find the keys instead of having to parse /proc/keys.
> 
> Signed-off-by: Andrew Halaney <andrew@amutable.com>
> ---

Thanks for doing this! Looks good to me,
Reviewed-by: Christian Brauner (Amutable) <brauner@kernel.org>