inode: make init and permission helpers idmapped mount aware
[linux-2.6-microblaze.git] / fs / crypto / policy.c
index a51cef6..ed3d623 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);