summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sepolicy/file_contexts3
-rw-r--r--sepolicy/system.te1
2 files changed, 4 insertions, 0 deletions
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index dc770f26..7d7a2b47 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -19,3 +19,6 @@
# Superuser's control sockets
/dev/com.android.settings.daemon(/.*)? u:object_r:superuser_device:s0
/dev/com.android.settings(/.*)? u:object_r:superuser_device:s0
+
+# Expansion of these hooks is a bit unconventional
+/cache/com.cyanogenmod.keyhandler.dex u:object_r:dalvikcache_data_file:s0
diff --git a/sepolicy/system.te b/sepolicy/system.te
index 4c6de38f..01972d48 100644
--- a/sepolicy/system.te
+++ b/sepolicy/system.te
@@ -1 +1,2 @@
allow system_server wallpaper_file:file relabelto;
+allow system_server dalvikcache_data_file:file write;