summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorrepo sync <gcondra@google.com>2013-04-24 11:18:29 -0700
committerrepo sync <gcondra@google.com>2013-04-25 14:19:16 -0700
commitb89bdfde422eff751b3f939f10ab57e22af83eaa (patch)
treeaecc1341fc19309b5bcc9a3fc20c4dc81bf7c886 /rootdir
parent7ee2e26eb98da10eaddf5a8e864d508cceab946b (diff)
downloadsystem_core-b89bdfde422eff751b3f939f10ab57e22af83eaa.zip
system_core-b89bdfde422eff751b3f939f10ab57e22af83eaa.tar.gz
system_core-b89bdfde422eff751b3f939f10ab57e22af83eaa.tar.bz2
Add persistent property for SELinux enforcment status.
Also adds triggers for going between enforcing and permissive status. Bug: 8702843 Change-Id: I841d80999b96acf6b6fd0a5408fb074952d6ae72
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.rc6
1 files changed, 6 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 89ec18a..fc98f80 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -409,6 +409,12 @@ on property:selinux.reload_policy=1
restart ueventd
restart installd
+on property:persist.selinux.enforcing=1
+ setenforce 1
+
+on property:persist.selinux.enforcing=0
+ setenforce 0
+
service console /system/bin/sh
class core
console