summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorrepo sync <gcondra@google.com>2013-05-09 23:04:07 -0700
committerrepo sync <gcondra@google.com>2013-05-14 21:05:03 -0700
commit921be8b6568df0057c4eacbac2e1022b71e09620 (patch)
tree7c53676f114977ee56cd53d19c9771f519069125 /rootdir
parent683aa89bfdf2439d1c5d9a4dc240d6a673678a98 (diff)
downloadsystem_core-921be8b6568df0057c4eacbac2e1022b71e09620.zip
system_core-921be8b6568df0057c4eacbac2e1022b71e09620.tar.gz
system_core-921be8b6568df0057c4eacbac2e1022b71e09620.tar.bz2
Add a version check for SELinux policy on device.
This helps to ensure that when a new system image is installed, old userdata policy isn't applied over the top of it. Bug: 8841348 Change-Id: I135af32250aa62979763e775842ce0af3c8b6f9f
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 4b4408f..4e8ff60 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