diff options
author | Daniel Rosenberg <drosen@google.com> | 2016-10-26 16:33:11 -0700 |
---|---|---|
committer | Amit Pundir <amit.pundir@linaro.org> | 2017-02-03 15:04:29 +0530 |
commit | e5eeaaf5f7319d0db83925c2729dcfb0cf1a4dbc (patch) | |
tree | 9b24e704355b8878f2a6d483ed1a293cd613be26 /fs/namei.c | |
parent | db2d40bb63f1906fde48a3b14fc9bb2e609d87db (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.c | 2 |
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); } |