aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2015-04-24 17:05:48 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-04-24 17:05:48 +0000
commitf6c03a80f08542afc82780f3b7cafe994d7a41e4 (patch)
treebd2094bf767a24c8795b5ec20d29c59aa7125f8d
parent7058b89f02bc367bc2cd4e9c3ee70404e71cf48c (diff)
parentc690332c5e4008d0f58d7a356311a821ef07d0cf (diff)
downloadbootable_recovery-f6c03a80f08542afc82780f3b7cafe994d7a41e4.zip
bootable_recovery-f6c03a80f08542afc82780f3b7cafe994d7a41e4.tar.gz
bootable_recovery-f6c03a80f08542afc82780f3b7cafe994d7a41e4.tar.bz2
am c690332c: Merge "Revert "init re-execs to set its security context now.""
* commit 'c690332c5e4008d0f58d7a356311a821ef07d0cf': Revert "init re-execs to set its security context now."
-rw-r--r--etc/init.rc7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/init.rc b/etc/init.rc
index 6c07c60..c78a44a 100644
--- a/etc/init.rc
+++ b/etc/init.rc
@@ -1,6 +1,13 @@
import /init.recovery.${ro.hardware}.rc
on early-init
+ # Apply strict SELinux checking of PROT_EXEC on mmap/mprotect calls.
+ write /sys/fs/selinux/checkreqprot 0
+
+ # Set the security context for the init process.
+ # This should occur before anything else (e.g. ueventd) is started.
+ setcon u:r:init:s0
+
start ueventd
start healthd