]> git.baikalelectronics.ru Git - kernel.git/commit
dm ima: measure data on device remove
authorTushar Sugandhi <tusharsu@linux.microsoft.com>
Tue, 13 Jul 2021 00:49:00 +0000 (17:49 -0700)
committerMike Snitzer <snitzer@redhat.com>
Tue, 10 Aug 2021 17:34:22 +0000 (13:34 -0400)
commitec947f5edde628918244ee54f5f07d7c8c0ee85c
tree359b62c7fe2d5e1f811463b267d6ce6182b09a63
parentc5bdfd57d0d37634af1c6f46e8495619d5a0623f
dm ima: measure data on device remove

Presence of an active block-device, configured with expected parameters,
is important for an external attestation service to determine if a system
meets the attestation requirements.  Therefore it is important for DM to
measure the device remove events.

Measure device parameters and table hashes when the device is removed,
using either remove or remove_all.

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