From b52874de531340af02ac8e664d828dcd02d2d860 Mon Sep 17 00:00:00 2001 From: Ricardo Cerqueira Date: Thu, 18 Jul 2013 15:41:06 +0100 Subject: [PATCH] selinux: Use a more reliable sentinel to flag /data labelling /data/anr isn't present on all devices, /data/system is Change-Id: Ifba71d073dc7b577911386cff316e8a19662cd0d --- prebuilt/common/etc/init.d/50selinuxrelabel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prebuilt/common/etc/init.d/50selinuxrelabel b/prebuilt/common/etc/init.d/50selinuxrelabel index 4096fdcb..be30775c 100644 --- a/prebuilt/common/etc/init.d/50selinuxrelabel +++ b/prebuilt/common/etc/init.d/50selinuxrelabel @@ -12,7 +12,7 @@ LABELDATA=0 LABELSYS=0 # Test /data -ls -Zd /data/anr | grep -q unlabeled +ls -Zd /data/system | grep -q unlabeled if [ $? -eq 0 ]; then $L "userdata is unlabeled, fixing..." LABELDATA=1