original_kernel/security/integrity/ima
Goldwyn Rodrigues a408e4a86b ima: open a new file instance if no read permissions
Open a new file instance as opposed to changing file->f_mode when
the file is not readable.  This is done to accomodate overlayfs
stacked file operations change.  The real struct file is hidden
behind the overlays struct file.  So, any file->f_mode manipulations are
not reflected on the real struct file.  Open the file again in read mode
if original file cannot be read, read and calculate the hash.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Cc: stable@vger.kernel.org (linux-4.19)
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
2018-10-10 15:18:00 -04:00
..
Kconfig ima: Do not audit if CONFIG_INTEGRITY_AUDIT is not set 2018-07-18 07:27:22 -04:00
Makefile
ima.h security/integrity: constify some read-only data 2018-10-10 12:56:15 -04:00
ima_api.c security/integrity: constify some read-only data 2018-10-10 12:56:15 -04:00
ima_appraise.c
ima_crypto.c ima: open a new file instance if no read permissions 2018-10-10 15:18:00 -04:00
ima_fs.c ima: fix showing large 'violations' or 'runtime_measurements_count' 2018-10-10 12:56:16 -04:00
ima_init.c security/integrity: constify some read-only data 2018-10-10 12:56:15 -04:00
ima_kexec.c
ima_main.c security/integrity: constify some read-only data 2018-10-10 12:56:15 -04:00
ima_mok.c
ima_policy.c ima: Differentiate auditing policy rules from "audit" actions 2018-07-18 07:27:22 -04:00
ima_queue.c ima: Get rid of ima_used_chip and use ima_tpm_chip != NULL instead 2018-07-28 17:03:11 +03:00
ima_template.c security/integrity: constify some read-only data 2018-10-10 12:56:15 -04:00
ima_template_lib.c
ima_template_lib.h