Skip to content

ima-evm-utils: miscellanous code clean up and bug fixes

Mimi Zohar linux-integrity 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6ima-evm-utils: fix PCRAggr error messagesrc/evmctl.c+1 -10 replies
2/6ima-evm-utils: fix measurement violation checkingsrc/evmctl.c+13 -40 replies
3/6ima-evm-utils: don't hardcode validating the IMA measurement listsrc/evmctl.c+6 -20 replies
4/6ima-evm-utils: calculate and verify the template data digestsrc/evmctl.c+7 -20 replies
5/6ima-evm-utils: use uint32_t for template lengthsrc/evmctl.c+2 -20 replies
6/6ima-evm-utils: define a basic hash_info.h filesrc/Makefile.am src/hash_info.gen+44 -13 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/6] ima-evm-utils: miscellanous code clean up and bug fixes

The IMA LTP and standalone tests supported a number of features properly, but were not carried forward in ima-evm-utils. For example, hard coding "fixing" file time of measure, time of use (ToMToU) violations, rather than requiring the "--validate" command option. Similarly, verifying the template data digest against the template data should be optional ("--verify").

On some older systems, the Linux kernel header package does not include "hash_info.h", which results in the crypto algorithm strings not being defined. To address this problem, hash_info.gen defines a "heredoc" to generate the "hash_info.h" file.

The remaining changes are simple bug fixes.

Mimi

Mimi Zohar (6):
ima-evm-utils: fix PCRAggr error message
ima-evm-utils: fix measurement violation checking
ima-evm-utils: don't hardcode validating the IMA measurement list
ima-evm-utils: calculate and verify the template data digest
ima-evm-utils: use uint32_t for template length
ima-evm-utils: define a basic hash_info.h file

 src/Makefile.am   |  2 +-
 src/evmctl.c      | 38 ++++++++++++++++++++++++++++----------
 src/hash_info.gen | 43 +++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 72 insertions(+), 11 deletions(-)
Signature · 1 line
2.7.5