ANDROID: sdcardfs: Add GID Derivation to sdcardfs
authorDaniel Rosenberg <drosen@google.com>
Wed, 25 Jan 2017 21:48:45 +0000 (13:48 -0800)
committerStricted <info@stricted.net>
Thu, 11 Oct 2018 16:03:23 +0000 (18:03 +0200)
commitf4d33b9ad717e9b47714232ea7145a30f7f0013a
tree475a5df126e1d87e420b23c63c9acd6c20429c6f
parent44fe4f6c8de8311040b4fb6dcfcd5bfebc021c0d
ANDROID: sdcardfs: Add GID Derivation to sdcardfs

This changes sdcardfs to modify the user and group in the
underlying filesystem depending on its usage. Ownership is
set by Android user, and package, as well as if the file is
under obb or cache. Other files can be labeled by extension.
Those values are set via the configfs interace.

To add an entry,
mkdir -p [configfs root]/sdcardfs/extensions/[gid]/[ext]

Bug: 34262585
Change-Id: I4e030ce84f094a678376349b1a96923e5076a0f4
Signed-off-by: Daniel Rosenberg <drosen@google.com>
fs/sdcardfs/derived_perm.c
fs/sdcardfs/file.c
fs/sdcardfs/inode.c
fs/sdcardfs/lookup.c
fs/sdcardfs/multiuser.h
fs/sdcardfs/packagelist.c
fs/sdcardfs/sdcardfs.h