ANDROID: sdcardfs: Use per mount permissions
authorDaniel Rosenberg <drosen@google.com>
Thu, 27 Oct 2016 03:27:20 +0000 (20:27 -0700)
committerAmit Pundir <amit.pundir@linaro.org>
Fri, 3 Feb 2017 09:34:29 +0000 (15:04 +0530)
commit5601195b26207a90c3a87572e78470934bc789a5
treea0d632641df1691a9fac96bca1c7bc8244ac9439
parent3be7ae5451ce09f6df73476de8a8606fcf4751ca
ANDROID: sdcardfs: Use per mount permissions

This switches sdcardfs over to using permission2.
Instead of mounting several sdcardfs instances onto
the same underlaying directory, you bind mount a
single mount several times, and remount with the
options you want. These are stored in the private
mount data, allowing you to maintain the same tree,
but have different permissions for different mount
points.

Warning functions have been added for permission,
as it should never be called, and the correct
behavior is unclear.

Change-Id: I841b1d70ec60cf2b866fa48edeb74a0b0f8334f5
Signed-off-by: Daniel Rosenberg <drosen@google.com>
fs/sdcardfs/derived_perm.c
fs/sdcardfs/inode.c
fs/sdcardfs/lookup.c
fs/sdcardfs/main.c
fs/sdcardfs/sdcardfs.h