diff options
author | repo sync <gcondra@google.com> | 2013-04-24 11:18:29 -0700 |
---|---|---|
committer | repo sync <gcondra@google.com> | 2013-04-25 14:19:16 -0700 |
commit | b89bdfde422eff751b3f939f10ab57e22af83eaa (patch) | |
tree | aecc1341fc19309b5bcc9a3fc20c4dc81bf7c886 /rootdir | |
parent | 7ee2e26eb98da10eaddf5a8e864d508cceab946b (diff) | |
download | system_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.rc | 6 |
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 |