summaryrefslogtreecommitdiffstats
path: root/fs/overlayfs
diff options
context:
space:
mode:
authorMimi Zohar <zohar@linux.ibm.com>2023-12-19 16:11:25 +0100
committerMimi Zohar <zohar@linux.ibm.com>2023-12-20 13:40:50 +0100
commitc00f94b3a5be428837868c0f2cdaa3fa5b4b1995 (patch)
tree92e8dde74e227d6b64e6721e5127d5d7360d73cf /fs/overlayfs
parentevm: add support to disable EVM on unsupported filesystems (diff)
downloadlinux-c00f94b3a5be428837868c0f2cdaa3fa5b4b1995.tar.xz
linux-c00f94b3a5be428837868c0f2cdaa3fa5b4b1995.zip
overlay: disable EVM
Until a complete solution is developed, update 'sb->s_iflags' to disable EVM. Acked-by: Amir Goldstein <amir73il@gmail.com> Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Diffstat (limited to 'fs/overlayfs')
-rw-r--r--fs/overlayfs/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
index a0967bb25003..e3d9c6c80a47 100644
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -1454,6 +1454,7 @@ int ovl_fill_super(struct super_block *sb, struct fs_context *fc)
* lead to unexpected results.
*/
sb->s_iflags |= SB_I_NOUMASK;
+ sb->s_iflags |= SB_I_EVM_UNSUPPORTED;
err = -ENOMEM;
root_dentry = ovl_get_root(sb, ctx->upper.dentry, oe);