projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d25094
)
ANDROID: vfs: user permission2 in notify_change2
author
Daniel Rosenberg
<drosen@google.com>
Tue, 14 Mar 2017 22:39:05 +0000
(15:39 -0700)
committer
Amit Pundir
<amit.pundir@linaro.org>
Mon, 10 Apr 2017 07:42:16 +0000
(13:12 +0530)
This allows filesystems to use their mount private data to
influence the permissions they use when attempting to touch.
Signed-off-by: Daniel Rosenberg <drosen@google.com>
Bug:
36228261
Change-Id: I1052319ba1c3ce5d5e586aa7f8a80c08851a5c7f
fs/attr.c
patch
|
blob
|
history
diff --git
a/fs/attr.c
b/fs/attr.c
index 11be2265a2d55cb0688231698770b29ee357b0f1..c86b37c38fb7c780b17bd5dcedc5f8db299bf5ea 100644
(file)
--- a/
fs/attr.c
+++ b/
fs/attr.c
@@
-211,7
+211,7
@@
int notify_change2(struct vfsmount *mnt, struct dentry * dentry, struct iattr *
return -EPERM;
if (!inode_owner_or_capable(inode)) {
- error = inode_permission
(
inode, MAY_WRITE);
+ error = inode_permission
2(mnt,
inode, MAY_WRITE);
if (error)
return error;
}