aboutsummaryrefslogtreecommitdiffstats
path: root/tee.te
diff options
context:
space:
mode:
authorStephen Smalley <sds@tycho.nsa.gov>2013-10-29 14:42:40 -0400
committerStephen Smalley <sds@tycho.nsa.gov>2013-11-13 16:31:44 -0500
commit72a4745919f8eb2fae998450935ed1f1d0e3bb2a (patch)
treeff2025341fdf7df6602bd4c9384122a10996ac10 /tee.te
parent91ebcf33326418ed9603e618ad193550646c3b04 (diff)
downloadandroid_external_sepolicy-72a4745919f8eb2fae998450935ed1f1d0e3bb2a.tar.gz
android_external_sepolicy-72a4745919f8eb2fae998450935ed1f1d0e3bb2a.tar.bz2
android_external_sepolicy-72a4745919f8eb2fae998450935ed1f1d0e3bb2a.zip
Confine tee, but leave it permissive for now.
Change-Id: Id69b1fe80746429a550448b9168ac7e86c38aa9f Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Diffstat (limited to 'tee.te')
-rw-r--r--tee.te7
1 files changed, 6 insertions, 1 deletions
diff --git a/tee.te b/tee.te
index 1aae06e..c612821 100644
--- a/tee.te
+++ b/tee.te
@@ -2,9 +2,14 @@
# trusted execution environment (tee) daemon
#
type tee, domain;
+permissive tee;
type tee_exec, exec_type, file_type;
type tee_device, dev_type;
type tee_data_file, file_type, data_file_type;
-unconfined_domain(tee)
init_daemon_domain(tee)
+allow tee self:capability { dac_override };
+allow tee tee_device:chr_file rw_file_perms;
+allow tee tee_data_file:dir rw_dir_perms;
+allow tee tee_data_file:file create_file_perms;
+allow tee self:netlink_socket { create bind read };