diff options
author | Jeff Layton <[email protected]> | 2023-04-17 12:55:51 -0400 |
---|---|---|
committer | Mimi Zohar <[email protected]> | 2023-05-23 18:07:34 -0400 |
commit | db1d1e8b9867aae5c3e61ad7859abfcc4a6fd6c7 (patch) | |
tree | e8383eaf530258062aa0aa585adef06b5f9c3f38 /lib/mpi/mpi-sub-ui.c | |
parent | f1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6 (diff) |
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 <[email protected]>
Reviewed-by: Christian Brauner <[email protected]>
Signed-off-by: Jeff Layton <[email protected]>
Signed-off-by: Mimi Zohar <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions