linux/security/integrity/ima
Mimi Zohar 143f450c6c ima: detect changes to the backing overlay file
commit b836c4d29f upstream.

Commit 18b44bc5a6 ("ovl: Always reevaluate the file signature for
IMA") forced signature re-evaulation on every file access.

Instead of always re-evaluating the file's integrity, detect a change
to the backing file, by comparing the cached file metadata with the
backing file's metadata.  Verifying just the i_version has not changed
is insufficient.  In addition save and compare the i_ino and s_dev
as well.

Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Tested-by: Eric Snowberg <eric.snowberg@oracle.com>
Tested-by: Raul E Rangel <rrangel@chromium.org>
Cc: stable@vger.kernel.org
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-11-28 17:07:12 +00:00
..
ima_api.c ima: detect changes to the backing overlay file 2023-11-28 17:07:12 +00:00
ima_appraise.c ima: fix blocking of security.ima xattrs of unsupported algorithms 2022-08-23 10:42:02 -04:00
ima_asymmetric_keys.c
ima_crypto.c ima: Fix potential memory leak in ima_init_crypto() 2022-07-13 10:13:58 -04:00
ima_efi.c ima: force signature verification when CONFIG_KEXEC_SIG is configured 2022-07-13 10:13:41 -04:00
ima_fs.c
ima_init.c
ima_kexec.c
ima_main.c ima: detect changes to the backing overlay file 2023-11-28 17:07:12 +00:00
ima_modsig.c ima: Fix build warnings 2023-07-19 16:21:03 +02:00
ima_mok.c
ima_policy.c ima: Fix build warnings 2023-07-19 16:21:03 +02:00
ima_queue_keys.c
ima_queue.c
ima_template_lib.c ima: fix violation measurement list record 2022-07-06 22:31:52 -04:00
ima_template_lib.h
ima_template.c ima: Fix a potential NULL pointer access in ima_restore_measurement_list 2023-01-07 11:11:52 +01:00
ima.h
Kconfig ima: rework CONFIG_IMA dependency block 2023-10-10 22:00:41 +02:00
Makefile