]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dm: Don't warn if IMA_DISABLE_HTABLE is not enabled
authorJon Hunter <jonathanh@nvidia.com>
Fri, 31 Oct 2025 15:34:55 +0000 (15:34 +0000)
committerMikulas Patocka <mpatocka@redhat.com>
Tue, 18 Nov 2025 17:24:25 +0000 (18:24 +0100)
commitc82faa893418f584da8f38f9cbdda4533f49fd55
treef105597a4fb0ee5c12a560ed29ff17a8c4890461
parent23f57ed9d26e309010996a6809e410ed59c7ec7c
dm: Don't warn if IMA_DISABLE_HTABLE is not enabled

Commit f1cd6cb24b6b ("dm ima: add a warning in dm_init if duplicate ima
events are not measured") added a warning message if CONFIG_IMA is
enabled but CONFIG_IMA_DISABLE_HTABLE is not to inform users. When
enabling CONFIG_IMA, CONFIG_IMA_DISABLE_HTABLE is disabled by default
and so warning is seen. Therefore, it seems more appropriate to make
this an INFO level message than warning. If this truly is a warning,
then maybe CONFIG_IMA_DISABLE_HTABLE should default to y if CONFIG_IMA
is enabled.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm.c