OSDN Git Service

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>
Tue, 14 Aug 2018 12:17:11 +0000 (17:47 +0530)
commit9865eced76351cca17689601c8b3604c5679c7e6
treede23dd86c647a43358faa9cab55e791eefac635a
parent4f397f22de71362f4a9211f3b3e3e2f6a7c7c5cc
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