ANDROID: sdcardfs: Use per mount permissions
authorDaniel Rosenberg <drosen@google.com>
Thu, 27 Oct 2016 03:27:20 +0000 (20:27 -0700)
committerDaniel Rosenberg <drosen@google.com>
Thu, 26 Jan 2017 23:53:30 +0000 (15:53 -0800)
commit4d70f73115248761f35aaa9725a22e4b957d2938
treefa15411364cde3ac624b21139b5aef186f0925f3
parent6b6e896b0beed019c1fe4ad1b49c327d905956b8
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