android_kernel_xiaomi_sm8450/fs/overlayfs
Eric Snowberg 331d85f0bc ovl: Always reevaluate the file signature for IMA
[ Upstream commit 18b44bc5a67275641fb26f2c54ba7eef80ac5950 ]

Commit db1d1e8b9867 ("IMA: use vfs_getattr_nosec to get the i_version")
partially closed an IMA integrity issue when directly modifying a file
on the lower filesystem.  If the overlay file is first opened by a user
and later the lower backing file is modified by root, but the extended
attribute is NOT updated, the signature validation succeeds with the old
original signature.

Update the super_block s_iflags to SB_I_IMA_UNVERIFIABLE_SIGNATURE to
force signature reevaluation on every file access until a fine grained
solution can be found.

Signed-off-by: Eric Snowberg <eric.snowberg@oracle.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-19 12:20:05 +02:00
..
copy_up.c ovl: update of dentry revalidate flags after copy up 2023-07-27 08:43:55 +02:00
dir.c ovl: update of dentry revalidate flags after copy up 2023-07-27 08:43:55 +02:00
export.c ovl: update of dentry revalidate flags after copy up 2023-07-27 08:43:55 +02:00
file.c ovl: remove privs in ovl_fallocate() 2023-02-22 12:55:55 +01:00
inode.c ovl: perform vfs_getxattr() with mounter creds 2021-02-17 11:02:22 +01:00
Kconfig docs: fix broken references to text files 2020-04-20 15:35:59 -06:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
namei.c ovl: update of dentry revalidate flags after copy up 2023-07-27 08:43:55 +02:00
overlayfs.h ovl: update of dentry revalidate flags after copy up 2023-07-27 08:43:55 +02:00
ovl_entry.h ovl: check type and offset of struct vfsmount in ovl_entry 2023-08-26 15:26:44 +02:00
readdir.c ovl: invalidate readdir cache on changes to dir with origin 2021-05-14 09:50:35 +02:00
super.c ovl: Always reevaluate the file signature for IMA 2023-09-19 12:20:05 +02:00
util.c ovl: update of dentry revalidate flags after copy up 2023-07-27 08:43:55 +02:00