diff options
| author | Benjamin Marzinski <bmarzins@redhat.com> | 2026-04-29 16:21:05 -0400 |
|---|---|---|
| committer | Mikulas Patocka <mpatocka@redhat.com> | 2026-05-04 14:53:27 +0200 |
| commit | 7f3ff42e1858f064b3bd8e3ef32f508185563cf9 (patch) | |
| tree | 0e0b90d32aefcd540ee1db19942db14ceee32bd1 /include/linux | |
| parent | c90decb190bcae6a20b3aa8575f69eef543930e5 (diff) | |
dm-ima: Fix issues with dm_ima_measure_on_device_rename
dm_ima_measure_on_device_rename() can be called on a device before it
ever loads a table, so it needs to handle the case where there is no
table metadata. Also, it was only updating the table_metadata on the
active table. If there was an inactive table when the device was renamed
and that table was later swapped in as the active table, it would
still have the old name. dm_ima_measure_on_device_rename() was also
needlessly allocating new memory for the updated table metadata, instead
of just reusing the existing memory.
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
