omni: sepolicy: Add posix-type fs rules for sdcards.
Everything below holds for sdcards formatted with a
ext4 / f2fs or alike filesystem.
* Allow filesystem context relabeling from vold that is
required to set the correct context.
* Grant access to the sdcard for untrusted_app,
untrusted_app_25, priv_app, and platform_app.
* Label files & dirs below a corresponding sdcard with
sdcard_posix (set in genfscontext).
* Allow installd to get the quota.
* Allow sdcard access for the mediaprovider.
Change-Id: I7b0347010e7bc11a461b0120f75095d5d6ad0c70
Signed-off-by: Alexander Diewald <Diewi@diewald-net.com>
diff --git a/sepolicy/installd.te b/sepolicy/installd.te
index 47f0c52..cef2730 100644
--- a/sepolicy/installd.te
+++ b/sepolicy/installd.te
@@ -1,3 +1,4 @@
# Allow querying of asec size on SD card
allow installd sdcard_type:dir { search };
allow installd sdcard_type:file { getattr };
+allow installd sdcard_posix:filesystem quotaget;