summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorgcondra@google.com <gcondra@google.com>2013-05-14 23:43:56 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-05-14 23:43:56 -0700
commit5a98566d589408c78e35f4476f478a2fa1c13e78 (patch)
tree3e17a8e334543059a0895be111f4d6e78f4ca640 /rootdir
parenta817ff9cf61daeb69e8b8382c80677e3e5c573a9 (diff)
parent921be8b6568df0057c4eacbac2e1022b71e09620 (diff)
downloadsystem_core-5a98566d589408c78e35f4476f478a2fa1c13e78.zip
system_core-5a98566d589408c78e35f4476f478a2fa1c13e78.tar.gz
system_core-5a98566d589408c78e35f4476f478a2fa1c13e78.tar.bz2
am 921be8b6: Add a version check for SELinux policy on device.
* commit '921be8b6568df0057c4eacbac2e1022b71e09620': Add a version check for SELinux policy on device.
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.rc6
1 files changed, 3 insertions, 3 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index b89708e..f887a26 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -177,9 +177,6 @@ on post-fs
mkdir /cache/lost+found 0770 root root
on post-fs-data
- # reload SELinux based on what we find on the data partition
- selinux_reload_policy
-
# We chown/chmod /data again so because mount is run as root + defaults
chown system system /data
chmod 0771 /data
@@ -263,6 +260,9 @@ on post-fs-data
#setprop vold.post_fs_data_done 1
on boot
+# reload SELinux policy to make sure we use the most up-to-date one
+ selinux_reload_policy
+
# basic network init
ifup lo
hostname localhost