ANDROID: sdcardfs: Avoid setting GIDs outside of valid ranges
authorDaniel Rosenberg <drosen@google.com>
Mon, 24 Apr 2017 23:11:03 +0000 (16:11 -0700)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 1 May 2017 09:59:14 +0000 (15:29 +0530)
commit1e64884a121b9d43a79370ddacb749c3873ac3e5
tree2d8f3e8db998e6823e3d37daaf5019af919b5d14
parente6eb0729b6145fc90613bc56e5903bf4f1d9f43f
ANDROID: sdcardfs: Avoid setting GIDs outside of valid ranges

When setting up the ownership of files on the lower filesystem,
ensure that these values are in reasonable ranges for apps. If
they aren't, default to AID_MEDIA_RW

Signed-off-by: Daniel Rosenberg <drosen@google.com>
Bug: 37516160
Change-Id: I0bec76a61ac72aff0b993ab1ad04be8382178a00
fs/sdcardfs/derived_perm.c
fs/sdcardfs/multiuser.h