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)
committerStricted <info@stricted.net>
Thu, 11 Oct 2018 16:03:39 +0000 (18:03 +0200)
commitb837bbcd4cf74e24e8b365476c889362ad781e24
tree7577f937100673754f48b9e6169ff0de93ff98d2
parent0d2128bee99a1aee04a3160d27566c105b93cdf4
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