Skip to content

ima-evm-utils: Implement function to only create IMA signature

Stefan Berger linux-integrity 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 4 repliesIn review
  2. v13 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- use imaevm_calc_hash to also cover hash calculations of links, directories etc.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3libimaevm: Implement imaevm_create_ima_signaturesrc/imaevm.h src/libimaevm.c+141 -40 replies
2/3tests: Add program to create IMA signature with new API calltests/Makefile.am tests/create_ima_signature.c tests/sign_verify.test+136 -22 replies
3/3libimaevm: Have sign_hash_v2 call sign_hash_v2_pkey after reading key filesrc/libimaevm.c+10 -550 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] ima-evm-utils: Implement function to only create IMA signature

This series of patches implements imaevm_create_ima_signature, a function that only creates an IMA v2 signature but does not write it into an xattr. This API fullfills a requirement of rpm-ostree where a tool is being built to sign all files from something similar to a tar byte stream, though where files are written to temporary files for signing purpose but the signature itself should not be written into the filesystem's xattr but simply returned via the API.

Stefan

v2:
- use imaevm_calc_hash to also cover hash calculations of links, directories etc.

Stefan Berger (3):
libimaevm: Implement imaevm_create_ima_signature
tests: Add program to create IMA signature with new API call
libimaevm: Have sign_hash_v2 call sign_hash_v2_pkey after reading key
file

 src/imaevm.h                 |   2 +
 src/libimaevm.c              | 148 ++++++++++++++++++++++++++++-------
 tests/Makefile.am            |   6 ++
 tests/create_ima_signature.c | 111 ++++++++++++++++++++++++++
 tests/sign_verify.test       |  21 ++++-
 5 files changed, 257 insertions(+), 31 deletions(-)
 create mode 100644 tests/create_ima_signature.c
Signature · 1 line
2.30.2