dm ima: prefix dm table hashes in ima log with hash algorithm
authorTushar Sugandhi <tusharsu@linux.microsoft.com>
Fri, 13 Aug 2021 21:37:56 +0000 (14:37 -0700)
committerMike Snitzer <snitzer@redhat.com>
Fri, 20 Aug 2021 19:59:43 +0000 (15:59 -0400)
commit8f509fd4a53ffaf07feeef6dd48cc6bd060ca4f3
tree43c5d2e80e6609103284f12f173b7d43621412c7
parent528b16bfc3ae5f11638e71b3b63a81f9999df727
dm ima: prefix dm table hashes in ima log with hash algorithm

The active/inactive table hashes measured in the ima log do not contain
the information about hash algorithm.  This information is useful for the
attestation servers to recreate the hashes and compare them with the ones
present in the ima log to verify the table contents.

Prefix the table hashes in various DM events in ima log with the hash
algorithm used to compute those hashes.

Signed-off-by: Tushar Sugandhi <tusharsu@linux.microsoft.com>
Suggested-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-ima.c
drivers/md/dm-ima.h