linux/security/integrity/ima
Mimi Zohar fea682d93e ima: relax requiring a file signature for new files with zero length
commit b7e27bc1d4 upstream.

Custom policies can require file signatures based on LSM labels.  These
files are normally created and only afterwards labeled, requiring them
to be signed.

Instead of requiring file signatures based on LSM labels, entire
filesystems could require file signatures.  In this case, we need the
ability of writing new files without requiring file signatures.

The definition of a "new" file was originally defined as any file with
a length of zero.  Subsequent patches redefined a "new" file to be based
on the FILE_CREATE open flag.  By combining the open flag with a file
size of zero, this patch relaxes the file signature requirement.

Fixes: 1ac202e978 ima: accept previously set IMA_NEW_FILE
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2018-06-16 22:21:43 +01:00
..
ima.h ima: pass 'opened' flag to identify newly created files 2017-08-26 02:14:23 +01:00
ima_api.c ima: audit log files opened with O_DIRECT flag 2014-06-03 14:21:50 -05:00
ima_appraise.c ima: relax requiring a file signature for new files with zero length 2018-06-16 22:21:43 +01:00
ima_crypto.c ima: fix fallback to use new_sync_read() 2014-10-30 09:40:16 -07:00
ima_fs.c ima: fix ima_show_template_data_ascii() 2015-07-15 10:00:38 +01:00
ima_init.c security: integrity: Use a more current logging style 2014-03-07 12:15:21 -05:00
ima_main.c ima: fix hash algorithm initialization 2018-02-13 18:42:19 +00:00
ima_policy.c ima: extend "mask" policy matching support 2015-08-27 15:06:54 +01:00
ima_queue.c integrity: fix checkpatch errors 2014-03-07 12:15:45 -05:00
ima_template.c integrity: fix checkpatch errors 2014-03-07 12:15:45 -05:00
ima_template_lib.c ima: fix ima_show_template_data_ascii() 2015-07-15 10:00:38 +01:00
ima_template_lib.h ima: extend the measurement list to include the file signature 2013-10-31 20:19:35 -04:00
Kconfig Revert "ima: define '_ima' as a builtin 'trusted' keyring" 2013-11-23 16:36:35 -08:00
Makefile ima: define template fields library and new helpers 2013-10-25 17:17:05 -04:00