summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorBenjamin Marzinski <bmarzins@redhat.com>2026-04-29 23:21:00 +0300
committerMikulas Patocka <mpatocka@redhat.com>2026-05-04 15:52:28 +0300
commitc21e67983c4da178930e21d35a292114e3c5b818 (patch)
tree501e5c127189039691c8cb9139d5d01af04e2f72 /include/linux/debugobjects.h
parent8904a3de874e7053cf510095ada30d6a02ce5c90 (diff)
downloadlinux-c21e67983c4da178930e21d35a292114e3c5b818.tar.xz
dm-ima: remove broken last_target_measured logic
When it ran out of space for adding more targets to the ima_buf, dm_ima_measure_on_table_load() would measure the dm device early, and then add the rest of the targets and measure it again. last_target_measured was intended to flag the last target measured so that the device wouldn't get remeasured, if no new targets were added after the early measurement. But the way to code works, the dm device will never be measured early unless there is another target to add to the ima_buf. Instead, if there is only one more target to add, that target was getting added to the ima_buf, but it wasn't getting remeasured, because last_target_measured was set. Since dm_ima_measure_on_table_load() only measures a device early when there are more targets to add, the final measurement must always happen, and last_target_measured is unneeded. Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions