ANDROID: sdcardfs: Allow non-owners to touch
authorDaniel Rosenberg <drosen@google.com>
Fri, 20 Jan 2017 23:19:13 +0000 (15:19 -0800)
committerStricted <info@stricted.net>
Thu, 11 Oct 2018 16:03:21 +0000 (18:03 +0200)
commit50e335657400b585eac7c78afe2802179b5ab096
treefcee3339f022bb44e176a403ed7ea41e1dac71e0
parenta0ccdaf72fb4e7e7456269cb7a138cdf4fc83ecb
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