summaryrefslogtreecommitdiffstats
path: root/sepolicy
diff options
context:
space:
mode:
authord34d <clark@cyngn.com>2016-09-14 15:15:06 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-09-20 09:18:26 -0700
commit699dceabbfc6c53131bc29e42b7b28e3c411b683 (patch)
treebe7147b6a4014e3c336e9ddb9d95ecccf3b2bfdf /sepolicy
parent4b6f22700fbd66b74c3e1941a3d28ef8e99f2a84 (diff)
downloadvendor_replicant-699dceabbfc6c53131bc29e42b7b28e3c411b683.zip
vendor_replicant-699dceabbfc6c53131bc29e42b7b28e3c411b683.tar.gz
vendor_replicant-699dceabbfc6c53131bc29e42b7b28e3c411b683.tar.bz2
themes: allow system_server to relabel them dir
On a fresh install the theme service broker creates the initial theme directory which needs to be relabeled to a themeservice_app_data_File in order for the brokered theme service to write to this directory Change-Id: Ifd689a0c619c0e954192749b83a0cacaa945468f TICKET: NIGHTLIES-3349
Diffstat (limited to 'sepolicy')
-rw-r--r--sepolicy/system_server.te4
1 files changed, 4 insertions, 0 deletions
diff --git a/sepolicy/system_server.te b/sepolicy/system_server.te
index 39ee935..5ae809c 100644
--- a/sepolicy/system_server.te
+++ b/sepolicy/system_server.te
@@ -9,3 +9,7 @@ allow system_server persist_property_file:file { create_file_perms unlink };
allow system_server storage_stub_file:dir { getattr };
allow system_server media_rw_data_file:dir r_dir_perms;
+
+# Allow system_server to relabel newly created theme directory for
+# use by the proxied theme service
+allow system_server themeservice_app_data_file:dir relabelto;