summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorrepo sync <gcondra@google.com>2013-04-26 20:31:21 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-04-26 20:31:21 +0000
commit538b5d4e8e4c480b2120aa957fe3e11a2836a1b3 (patch)
tree20b7da047484aa8f37c10156a29c51e103e49b3c /rootdir
parent131ee07b77e0250c16cebe2b0e226c5bff8e9587 (diff)
parentb89bdfde422eff751b3f939f10ab57e22af83eaa (diff)
downloadsystem_core-538b5d4e8e4c480b2120aa957fe3e11a2836a1b3.zip
system_core-538b5d4e8e4c480b2120aa957fe3e11a2836a1b3.tar.gz
system_core-538b5d4e8e4c480b2120aa957fe3e11a2836a1b3.tar.bz2
Merge "Add persistent property for SELinux enforcment status." into jb-mr2-dev
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 f7fe6f3..854af44 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -413,6 +413,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