summaryrefslogtreecommitdiff
path: root/fs/namei.c
diff options
context:
space:
mode:
authorDaniel Rosenberg <drosen@google.com>2016-10-26 16:33:11 -0700
committerAmit Pundir <amit.pundir@linaro.org>2017-02-03 15:04:29 +0530
commite5eeaaf5f7319d0db83925c2729dcfb0cf1a4dbc (patch)
tree9b24e704355b8878f2a6d483ed1a293cd613be26 /fs/namei.c
parentdb2d40bb63f1906fde48a3b14fc9bb2e609d87db (diff)
ANDROID: vfs: Add setattr2 for filesystems with per mount permissions
This allows filesystems to use their mount private data to influence the permssions they use in setattr2. It has been separated into a new call to avoid disrupting current setattr users. Change-Id: I19959038309284448f1b7f232d579674ef546385 Signed-off-by: Daniel Rosenberg <drosen@google.com>
Diffstat (limited to 'fs/namei.c')
-rw-r--r--fs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 3885e445d951..200a35ebf817 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -2767,7 +2767,7 @@ static int handle_truncate(struct file *filp)
if (!error)
error = security_path_truncate(path);
if (!error) {
- error = do_truncate(path->dentry, 0,
+ error = do_truncate2(path->mnt, path->dentry, 0,
ATTR_MTIME|ATTR_CTIME|ATTR_OPEN,
filp);
}