Merge tag 'fuse-update-4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/mszered...
[sfrench/cifs-2.6.git] / fs / fuse / inode.c
index 061500c726083b39117a1d61136817142de0c7e6..ffcaf98044b9aeb81292532a838133c518ca6d73 100644 (file)
@@ -1086,6 +1086,9 @@ static int fuse_fill_super(struct super_block *sb, void *data, int silent)
        sb->s_maxbytes = MAX_LFS_FILESIZE;
        sb->s_time_gran = 1;
        sb->s_export_op = &fuse_export_operations;
+       sb->s_iflags |= SB_I_IMA_UNVERIFIABLE_SIGNATURE;
+       if (sb->s_user_ns != &init_user_ns)
+               sb->s_iflags |= SB_I_UNTRUSTED_MOUNTER;
 
        file = fget(d.fd);
        err = -EINVAL;