projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
inode: make init and permission helpers idmapped mount aware
[linux-2.6-microblaze.git]
/
fs
/
crypto
/
policy.c
diff --git
a/fs/crypto/policy.c
b/fs/crypto/policy.c
index
a51cef6
..
ed3d623
100644
(file)
--- a/
fs/crypto/policy.c
+++ b/
fs/crypto/policy.c
@@
-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);