ANDROID: sdcardfs: Allow non-owners to touch
authorDaniel Rosenberg <drosen@google.com>
Fri, 20 Jan 2017 23:19:13 +0000 (15:19 -0800)
committerDaniel Rosenberg <drosen@google.com>
Tue, 30 Jan 2018 03:40:03 +0000 (19:40 -0800)
commit3b10af806aedfd5ac6c5f78c3a947b8904f83d51
tree6625d13a3ada4d376bd4265722192d50c392c3d4
parentc11ba7c90adccafa95cd0f5127d2473cbc06d09c
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.

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