Skip to content

RFC IMA: Export functions for file integrity verification

Vivek Goyal lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4integrity: Identify asymmetric digital signature using new typesecurity/integrity/digsig.c security/integrity/evm/evm_main.c security/integrity/ima/ima_appraise.c +1 more+20 -160 replies
2/4ima: export new IMA functions for signature verificationinclude/linux/ima.h include/linux/integrity.h security/integrity/ima/ima_api.c +1 more+85 -10 replies
3/4capability: Create a new capability CAP_SIGNEDinclude/uapi/linux/capability.h kernel/cred.c security/commoncap.c+20 -110 replies
4/4binfmt_elf: Elf executable signature verificationfs/Kconfig.binfmt fs/binfmt_elf.c+56 -07 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/4] IMA: Export functions for file integrity verification

Hi,

This is just a proof of concept RFC to export some functions from IMA for file integrity verification. And there is a patch which modified binfmt_elf.c to show how a IMA subsystem user can call into IMA to verify integrity of a file.

This patch set is far from being done. I am just throwing it out so that we can start a discussion on whether exporting IMA functions makes sense and if it does, then how those functions should look like.

Thanks
Vivek

Vivek Goyal (4):
integrity: Identify asymmetric digital signature using new type
ima: export new IMA functions for signature verification
capability: Create a new capability CAP_SIGNED
binfmt_elf: Elf executable signature verification

 fs/Kconfig.binfmt                     |   12 ++++++++
 fs/binfmt_elf.c                       |   44 +++++++++++++++++++++++++++++++
 include/linux/ima.h                   |   24 ++++++++++++++++-
 include/linux/integrity.h             |    7 +++++
 include/uapi/linux/capability.h       |   12 ++++++++-
 kernel/cred.c                         |    7 +++++
 security/commoncap.c                  |    2 +
 security/integrity/digsig.c           |   11 +++++---
 security/integrity/evm/evm_main.c     |    4 ++-
 security/integrity/ima/ima_api.c      |   16 +++++++++++
 security/integrity/ima/ima_appraise.c |   46 +++++++++++++++++++++++++++++++-
 security/integrity/integrity.h        |   14 +++------
 12 files changed, 181 insertions(+), 18 deletions(-)
Signature · 1 line
1.7.7.6