summaryrefslogtreecommitdiffstats
path: root/drivers/fsi
diff options
context:
space:
mode:
authorMimi Zohar <zohar@linux.vnet.ibm.com>2017-11-08 07:38:28 -0500
committerMimi Zohar <zohar@linux.vnet.ibm.com>2017-12-11 14:26:26 -0500
commitb7e27bc1d42e8e0cc58b602b529c25cd0071b336 (patch)
treeca952361b382cba6c1d3381d258c4d248a4e1632 /drivers/fsi
parentd21bd6898336a7892914d308d5e0868f0b863571 (diff)
downloadlinux-b7e27bc1d42e8e0cc58b602b529c25cd0071b336.tar.bz2
ima: relax requiring a file signature for new files with zero length
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: 1ac202e978e1 ima: accept previously set IMA_NEW_FILE Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Diffstat (limited to 'drivers/fsi')
0 files changed, 0 insertions, 0 deletions