aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawit Pornkitprasan <p.pawit@gmail.com>2013-11-14 10:46:26 +0700
committerPawit Pornkitprasan <p.pawit@gmail.com>2013-11-14 10:48:08 +0700
commitef907713b74820e157cf46be7dd6454ca1d83a9a (patch)
tree1e3c5bde6d9057053be018a612b898827ef050ad
parent1b6aa84f9dceb291b195d786b96c7873981f6bca (diff)
downloadvendor_replicant-ef907713b74820e157cf46be7dd6454ca1d83a9a.tar.gz
vendor_replicant-ef907713b74820e157cf46be7dd6454ca1d83a9a.tar.bz2
vendor_replicant-ef907713b74820e157cf46be7dd6454ca1d83a9a.zip
sepolicy: allow vold to create files on external sdcard
This is required for ASEC support. Vold can already create and access directories, but do not yet have the permission for files. Change-Id: I5082bbff692e5dc53c7000e4b3a293e42d33f901
-rw-r--r--sepolicy/sepolicy.mk1
-rw-r--r--sepolicy/vold.te2
2 files changed, 3 insertions, 0 deletions
diff --git a/sepolicy/sepolicy.mk b/sepolicy/sepolicy.mk
index 26d2caab..16a0e796 100644
--- a/sepolicy/sepolicy.mk
+++ b/sepolicy/sepolicy.mk
@@ -13,4 +13,5 @@ BOARD_SEPOLICY_UNION += \
genfs_contexts \
installd.te \
seapp_contexts \
+ vold.te \
mac_permissions.xml
diff --git a/sepolicy/vold.te b/sepolicy/vold.te
new file mode 100644
index 00000000..24514422
--- /dev/null
+++ b/sepolicy/vold.te
@@ -0,0 +1,2 @@
+# Allow vold to manage ASEC
+allow vold sdcard_external:file create_file_perms;