summaryrefslogtreecommitdiff
path: root/fs/attr.c
diff options
context:
space:
mode:
authorDaniel Rosenberg <drosen@google.com>2017-03-14 15:39:05 -0700
committerAmit Pundir <amit.pundir@linaro.org>2017-04-10 13:12:16 +0530
commitdabcf1d17a04db801ac0d9068b3b20520369b8be (patch)
tree69b6ca07a6e9365b5e77f8e22ec1a60cb1336247 /fs/attr.c
parent1d2509402f0531a082c81e963372d5d8e3368190 (diff)
ANDROID: vfs: user permission2 in notify_change2
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
Diffstat (limited to 'fs/attr.c')
-rw-r--r--fs/attr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/attr.c b/fs/attr.c
index 11be2265a2d5..c86b37c38fb7 100644
--- 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_permission2(mnt, inode, MAY_WRITE);
if (error)
return error;
}