summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rootdir/init.rc10
1 files changed, 10 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 1fab7b7..8a072d5 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -25,6 +25,14 @@ on early-init
# Create mountpoint so Dalvik can mark as slave in zygotes.
mount tmpfs tmpfs /storage mode=0050,uid=0,gid=1028
+ # Allow system UID to setenforce and set booleans.
+ chown system system /selinux/enforce
+ chown system system /sys/fs/selinux/enforce
+ chown -R system system /selinux/booleans
+ chown -R system system /sys/fs/selinux/booleans
+ chown system system /selinux/commit_pending_bools
+ chown system system /sys/fs/selinux/commit_pending_bools
+
on init
sysclktz 0
@@ -432,6 +440,8 @@ service ueventd /sbin/ueventd
on property:selinux.reload_policy=1
restart ueventd
restart installd
+ chown -R system system /selinux/booleans
+ chown -R system system /sys/fs/selinux/booleans
service console /system/bin/sh
class core