]> git.baikalelectronics.ru Git - kernel.git/commit
dm ima: measure data on table clear
authorTushar Sugandhi <tusharsu@linux.microsoft.com>
Tue, 13 Jul 2021 00:49:01 +0000 (17:49 -0700)
committerMike Snitzer <snitzer@redhat.com>
Tue, 10 Aug 2021 17:34:23 +0000 (13:34 -0400)
commitddd7b40cf662941fb94566fbd1171d8112d6e576
treed6c3855071b09810146bf5abce6742df29d45b6d
parentec947f5edde628918244ee54f5f07d7c8c0ee85c
dm ima: measure data on table clear

For a given block device, an inactive table slot contains the parameters
to configure the device with.  The inactive table can be cleared
multiple times, accidentally or maliciously, which may impact the
functionality of the device, and compromise the system.  Therefore it is
important to measure and log the event when a table is cleared.

Measure device parameters, and table hashes when the inactive table slot
is cleared.

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