aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrint E. Kriebel <bekit@cyngn.com>2014-11-03 18:09:19 -0800
committerBrint E. Kriebel <bekit@cyngn.com>2014-11-03 18:09:19 -0800
commit92db6ff5df16332928738acb273921d7351d9de9 (patch)
tree51728ca03ea964b3dd2ff84274082d8348788218
parentcad26b897cb9ef168bd913a6c46ee84aa679a7d6 (diff)
parent1400258553c9fed0dfce40bae6d27939c1023d8c (diff)
downloadandroid_external_sepolicy-shipping/cm-11.0.tar.gz
android_external_sepolicy-shipping/cm-11.0.tar.bz2
android_external_sepolicy-shipping/cm-11.0.zip
-rw-r--r--app.te7
-rw-r--r--system.te4
2 files changed, 11 insertions, 0 deletions
diff --git a/app.te b/app.te
index c7e8c57..0ffe502 100644
--- a/app.te
+++ b/app.te
@@ -13,6 +13,13 @@ unix_socket_connect(appdomain, keystore, keystore)
# Receive and use open file descriptors inherited from zygote.
allow appdomain zygote:fd use;
+# gdbserver for ndk-gdb reads the zygote.
+# valgrind needs mmap exec for zygote
+allow appdomain zygote_exec:file rx_file_perms;
+
+# gdbserver for ndk-gdb ptrace attaches to app process.
+allow appdomain self:process ptrace;
+
# Read system properties managed by zygote.
allow appdomain zygote_tmpfs:file read;
diff --git a/system.te b/system.te
index 18e0a7b..f53121a 100644
--- a/system.te
+++ b/system.te
@@ -8,6 +8,10 @@ permissive system;
unconfined_domain(system);
relabelto_domain(system);
+# Relabel /data/anr.
+allow system system_data_file:dir relabelfrom;
+allow system anr_data_file:dir relabelto;
+
# Create a socket for receiving info from wpa.
type_transition system wifi_data_file:sock_file system_wpa_socket;
allow system self:zygote { specifyids specifyrlimits specifyseinfo };