dm ima: add version info to dm related events in ima log
authorTushar Sugandhi <tusharsu@linux.microsoft.com>
Fri, 13 Aug 2021 21:37:57 +0000 (14:37 -0700)
committerMike Snitzer <snitzer@redhat.com>
Fri, 20 Aug 2021 19:59:47 +0000 (15:59 -0400)
commitdc7b79cc2466805855f554e5f567ea9222b6e33a
treecf402a5e4d7f97940291d09d2989684f777042bb
parent8f509fd4a53ffaf07feeef6dd48cc6bd060ca4f3
dm ima: add version info to dm related events in ima log

The DM events present in the ima log contain various attributes in the
key=value format.  The attributes' names/values may change in future,
and new attributes may also get added.  The attestation server needs
some versioning to determine which attributes are supported and are
expected in the ima log.

Add version information to the DM events present in the ima log to
help attestation servers to correctly process the attributes across
different versions.

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