aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrint E. Kriebel <bekit@cyngn.com>2014-06-30 19:11:29 -0700
committerBrint E. Kriebel <bekit@cyngn.com>2014-06-30 19:11:29 -0700
commitcad26b897cb9ef168bd913a6c46ee84aa679a7d6 (patch)
treed9023ce3753e06208f2dd9c0286e19274d5c6602
parent2d2a2c9ea5e8a73fc0d842b878685a6f1bab2008 (diff)
parentcbc36489a60bddbee9857aaddb027290e4b22ef8 (diff)
downloadandroid_external_sepolicy-cm-11.0-XNPH44S-bacon-5fa8c79c0b.tar.gz
android_external_sepolicy-cm-11.0-XNPH44S-bacon-5fa8c79c0b.tar.bz2
android_external_sepolicy-cm-11.0-XNPH44S-bacon-5fa8c79c0b.zip
-rw-r--r--system.te10
1 files changed, 9 insertions, 1 deletions
diff --git a/system.te b/system.te
index 432ae36..18e0a7b 100644
--- a/system.te
+++ b/system.te
@@ -13,10 +13,18 @@ type_transition system wifi_data_file:sock_file system_wpa_socket;
allow system self:zygote { specifyids specifyrlimits specifyseinfo };
allow system backup_data_file:dir relabelto;
-allow system cache_backup_file:dir relabelto;
allow system apk_data_file:file relabelto;
allow system apk_tmp_file:file relabelto;
allow system apk_private_tmp_file:file relabelto;
# Access to wake locks
allow system sysfs_wake_lock:file rw_file_perms;
+
+# BackupManagerService lets PMS create a data backup file
+allow system cache_backup_file:file create_file_perms;
+# Relabel /data/backup
+allow system backup_data_file:dir { relabelto relabelfrom };
+# Relabel /cache/.*\.{data|restore}
+allow system cache_backup_file:file { relabelto relabelfrom };
+# LocalTransport creates and relabels /cache/backup
+allow system cache_backup_file:dir { relabelto relabelfrom create_dir_perms };