Skip to content

RFC ima-evm-utils: calculate per TPM bank template digest

Mimi Zohar linux-integrity 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest8 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8ima-evm-utils: treat unallocated banks as an errorsrc/evmctl.c+5 -00 replies
2/8ima-evm-utils: increase the size of "zero" and "fox" variablessrc/evmctl.c+5 -50 replies
3/8ima-evm-utils: calculate the digests for multiple TPM bankssrc/evmctl.c+162 -00 replies
4/8ima-evm-utils: add support in tpm2_read_pcrs to read different TPM bankssrc/evmctl.c+7 -40 replies
5/8ima-evm-utils: read the PCRs for the requested TPM bankssrc/evmctl.c+50 -00 replies
6/8ima-evm-utils: compare re-calculated PCRs with the TPM valuessrc/evmctl.c+35 -10 replies
7/8ima-evm-utils: use a common bank variable for TPM 1.2 and TPM 2.0src/evmctl.c+30 -70 replies
8/8ima-evm-utils: remove TPM 1.2 specific codesrc/evmctl.c+3 -610 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/8] ima-evm-utils: calculate per TPM bank template digest

IMA currently extends the different TPM banks by padding/truncating the SHA1 template digest. Although the IMA measurement list only includes the SHA1 template digest, the template digest could be re-calculated properly for each bank. Roberto Sassu's proposed "ima: support stronger algorithms for attestation" kernel patch set makes this change.

In order to test the proposed kernel change, this patch set walks the IMA measurement list, re-calculating the per TPM bank template digest and extending the TPM bank PCR with the bank specific digest. The last step, after walking the measurement list, is comparing the the resulting TPM per bank PCR values with the actual TPM per bank PCR values.

(Verifying the non SHA1 TPM banks depends on a kernel built with Roberto's "ima: support stronger algorithms for attestation" patch set.)

Mimi

Mimi Zohar (8):
ima-evm-utils: treat unallocated banks as an error
ima-evm-utils: increase the size of "zero" and "fox" variables
ima-evm-utils: calculate the digests for multiple TPM banks
ima-evm-utils: add support in tpm2_read_pcrs to read different TPM
banks
ima-evm-utils: read the PCRs for the requested TPM banks
ima-evm-utils: compare re-calculated PCRs with the TPM values
ima-evm-utils: use a common bank variable for TPM 1.2 and TPM 2.0
ima-evm-utils: remove TPM 1.2 specific code

 src/evmctl.c | 349 ++++++++++++++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 284 insertions(+), 65 deletions(-)
Signature · 1 line
2.7.5