aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Hao <jeffhao@google.com>2015-08-28 03:57:22 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-08-28 03:57:22 +0000
commitc2eb12b24c0c8b265745d049c0bed9f9fd1e4241 (patch)
tree09c64d3c45e0350889822719f29254703c580eb2
parent4008b6c627d9cd1bbbacd315a4e1d3456bb3b41c (diff)
parent9f0af9ec26df20cdd6d19db5d23c9656cdc1fa83 (diff)
downloadsepolicy-c2eb12b24c0c8b265745d049c0bed9f9fd1e4241.tar.gz
am 9f0af9ec: Merge "zygote/dex2oat: Grant additional symlink permissions" into lmp-sprout-dev
* commit '9f0af9ec26df20cdd6d19db5d23c9656cdc1fa83': zygote/dex2oat: Grant additional symlink permissions
-rw-r--r--dex2oat.te2
-rw-r--r--zygote.te2
2 files changed, 4 insertions, 0 deletions
diff --git a/dex2oat.te b/dex2oat.te
index 2df9947..5fded36 100644
--- a/dex2oat.te
+++ b/dex2oat.te
@@ -3,6 +3,8 @@ type dex2oat, domain;
type dex2oat_exec, exec_type, file_type;
allow dex2oat dalvikcache_data_file:file write;
+# Read symlinks in /data/dalvik-cache
+allow dex2oat dalvikcache_data_file:lnk_file read;
allow dex2oat installd:fd use;
# Read already open asec_apk_file file descriptors passed by installd.
diff --git a/zygote.te b/zygote.te
index 5ee4eb8..67660b3 100644
--- a/zygote.te
+++ b/zygote.te
@@ -27,6 +27,8 @@ allow zygote keychain_data_file:file r_file_perms;
# Write to /data/dalvik-cache.
allow zygote dalvikcache_data_file:dir create_dir_perms;
allow zygote dalvikcache_data_file:file create_file_perms;
+# Create symlinks in /data/dalvik-cache
+allow zygote dalvikcache_data_file:lnk_file create_file_perms;
# Write to /data/resource-cache
allow zygote resourcecache_data_file:dir rw_dir_perms;
allow zygote resourcecache_data_file:file create_file_perms;