]> Git Repo - linux.git/blobdiff - fs/crypto/policy.c
inode: make init and permission helpers idmapped mount aware
[linux.git] / fs / crypto / policy.c
index a51cef6bd27ff48a3073ca3ced74696a40b2ba53..ed3d623724cddbc0cef5b06948db83726f87b574 100644 (file)
@@ -465,7 +465,7 @@ int fscrypt_ioctl_set_policy(struct file *filp, const void __user *arg)
                return -EFAULT;
        policy.version = version;
 
-       if (!inode_owner_or_capable(inode))
+       if (!inode_owner_or_capable(&init_user_ns, inode))
                return -EACCES;
 
        ret = mnt_want_write_file(filp);
This page took 0.037632 seconds and 4 git commands to generate.