ANDROID: sdcardfs: Allow non-owners to touch
authorDaniel Rosenberg <drosen@google.com>
Fri, 20 Jan 2017 23:19:13 +0000 (15:19 -0800)
committerAmit Pundir <amit.pundir@linaro.org>
Fri, 3 Feb 2017 09:35:18 +0000 (15:05 +0530)
commitdfc1d5b47ba283ac1a3267da5534181ab1857d18
treecf034f3b167a5d4b6af86f7ce88ab0ba2346e1b2
parentf62b264b9765d6259386b4030d8e80865c84da7a
ANDROID: sdcardfs: Allow non-owners to touch

This modifies the permission checks in setattr to
allow for non-owners to modify the timestamp of
files to things other than the current time.
This still requires write access, as enforced by
the permission call, but relaxes the requirement
that the caller must be the owner, allowing those
with group permissions to change it as well.

Bug: 11118565
Change-Id: Ied31f0cce2797675c7ef179eeb4e088185adcbad
Signed-off-by: Daniel Rosenberg <drosen@google.com>
fs/sdcardfs/inode.c