summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo Cerqueira <cyanogenmod@cerqueira.org>2013-07-18 15:46:28 +0100
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2013-07-18 15:46:28 +0100
commit8994907baf46dc1ddd78467ec57ff78639c01937 (patch)
tree330fc5799d32101704ebb657279245968c5576c9
parentb52874de531340af02ac8e664d828dcd02d2d860 (diff)
downloadvendor_replicant-8994907baf46dc1ddd78467ec57ff78639c01937.zip
vendor_replicant-8994907baf46dc1ddd78467ec57ff78639c01937.tar.gz
vendor_replicant-8994907baf46dc1ddd78467ec57ff78639c01937.tar.bz2
selinux: When adding userdata labels, do cache too
Change-Id: I0c1ff737629474135767be7cfe2bfbea0513fa9e
-rw-r--r--prebuilt/common/etc/init.d/50selinuxrelabel3
1 files changed, 3 insertions, 0 deletions
diff --git a/prebuilt/common/etc/init.d/50selinuxrelabel b/prebuilt/common/etc/init.d/50selinuxrelabel
index be30775..bb66a4b 100644
--- a/prebuilt/common/etc/init.d/50selinuxrelabel
+++ b/prebuilt/common/etc/init.d/50selinuxrelabel
@@ -43,4 +43,7 @@ if [ $LABELDATA = "1" ]; then
$L "/data relabel starting..."
restorecon -R /data
$L "/data relabel complete"
+ $L "/cache relabel starting..."
+ restorecon -R /cache
+ $L "/cache relabel complete"
fi