summaryrefslogtreecommitdiff
path: root/net/tipc/topsrv.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2023-04-17 19:55:51 +0300
committerMimi Zohar <zohar@linux.ibm.com>2023-05-24 01:07:34 +0300
commitdb1d1e8b9867aae5c3e61ad7859abfcc4a6fd6c7 (patch)
treee8383eaf530258062aa0aa585adef06b5f9c3f38 /net/tipc/topsrv.c
parentf1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6 (diff)
downloadlinux-db1d1e8b9867aae5c3e61ad7859abfcc4a6fd6c7.tar.xz
IMA: use vfs_getattr_nosec to get the i_version
IMA currently accesses the i_version out of the inode directly when it does a measurement. This is fine for most simple filesystems, but can be problematic with more complex setups (e.g. overlayfs). Make IMA instead call vfs_getattr_nosec to get this info. This allows the filesystem to determine whether and how to report the i_version, and should allow IMA to work properly with a broader class of filesystems in the future. Reported-and-Tested-by: Stefan Berger <stefanb@linux.ibm.com> Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Diffstat (limited to 'net/tipc/topsrv.c')
0 files changed, 0 insertions, 0 deletions