ANDROID: sdcardfs: Add GID Derivation to sdcardfs
authorDaniel Rosenberg <drosen@google.com>
Wed, 25 Jan 2017 21:48:45 +0000 (13:48 -0800)
committerDaniel Rosenberg <drosen@google.com>
Tue, 30 Jan 2018 03:40:03 +0000 (19:40 -0800)
commit0edc9bf9dee3c9e8b3259534751a4e1372b5325a
tree7edf11e524cd4d9b3b168fd0d55cd64b9d3b560a
parent71c9ec247a7a9e85fc7bd52435f92a7cd9e04abf
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]

Signed-off-by: Daniel Rosenberg <drosen@google.com>
Bug: 34262585
Change-Id: I4e030ce84f094a678376349b1a96923e5076a0f4
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