aboutsummaryrefslogtreecommitdiffstats
path: root/shell.te
diff options
context:
space:
mode:
authorStephen Smalley <sds@tycho.nsa.gov>2012-11-13 13:00:05 -0500
committerGerrit Code Review <noreply-gerritcodereview@google.com>2012-11-27 10:05:42 -0800
commite8848726553e3abee6033200c98a657c9ca7cdb8 (patch)
tree525a1e762f5b6a6bd46223aa82c8edd90c9d0929 /shell.te
parentfdaa7869a5541b55413f59845dc5f7c56bab0614 (diff)
downloadandroid_external_sepolicy-e8848726553e3abee6033200c98a657c9ca7cdb8.tar.gz
android_external_sepolicy-e8848726553e3abee6033200c98a657c9ca7cdb8.tar.bz2
android_external_sepolicy-e8848726553e3abee6033200c98a657c9ca7cdb8.zip
Add policy for run-as program.
Add policy for run-as program and label it in file_contexts. Drop MLS constraints on local socket checks other than create/relabel as this interferes with connections with services, in particular for adb forward. Change-Id: Ib0c4abeb7cbef559e150a620c45a7c31e0531114 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Diffstat (limited to 'shell.te')
-rw-r--r--shell.te2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell.te b/shell.te
index 6e5329f..1f370d1 100644
--- a/shell.te
+++ b/shell.te
@@ -1,4 +1,4 @@
-type shell, domain;
+type shell, domain, mlstrustedsubject;
type shell_exec, file_type;
domain_auto_trans(init, shell_exec, shell)
allow shell rootfs:dir r_dir_perms;