Skip to content

ima: add regular file data hash support for sigv3

Mimi Zohar linux-integrity 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ima: Define asymmetric_verify_v3() to verify IMA sigv3 signaturessecurity/integrity/digsig.c security/integrity/digsig_asymmetric.c security/integrity/evm/evm_main.c +2 more+90 -562 replies
2/3ima: add regular file data hash signature version 3 supportsecurity/integrity/digsig_asymmetric.c security/integrity/ima/ima_appraise.c+2 -20 replies
3/3ima: add support to require IMA sigv3 signaturesDocumentation/ABI/testing/ima_policy security/integrity/ima/ima.h security/integrity/ima/ima_appraise.c +1 more+24 -160 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchStefan BergerEric BiggersKamlesh Kumar
SeriesT-b A-b T-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/3] ima: add regular file data hash support for sigv3

IMA signature version 3 (sigv3) support was introduced to avoid file signature ambiguity. Instead of directly signing a raw fs-verity hash, IMA signs the hash of ima_file_id structure, containing the type of signature, the hash algorithm, and the hash.

Pure ML-DSA calculates and signs the hash directly rather than a pre-hashed digest. To avoid ML-DSA having to re-calculate the file data hash, Eric Biggers suggested signing the smaller ima_file_id structure.

This patch set adds the sigv3 support for regular file data hashes. A subsequent patch set will add the ML-DSA support.

Mimi Zohar (3):
ima: Define asymmetric_verify_v3() to verify IMA sigv3 signatures
ima: add regular file data hash signature version 3 support
ima: add support to require IMA sigv3 signatures

 Documentation/ABI/testing/ima_policy   | 10 ++--
 security/integrity/digsig.c            |  8 +--
 security/integrity/digsig_asymmetric.c | 58 +++++++++++++++++++++
 security/integrity/evm/evm_main.c      |  3 +-
 security/integrity/ima/ima.h           |  1 +
 security/integrity/ima/ima_appraise.c  | 72 ++++++++------------------
 security/integrity/ima/ima_policy.c    | 22 ++++----
 security/integrity/integrity.h         | 14 ++++-
 8 files changed, 115 insertions(+), 73 deletions(-)

--
2.53.0