selinux: Use a more reliable sentinel to flag /data labelling

/data/anr isn't present on all devices, /data/system is

Change-Id: Ifba71d073dc7b577911386cff316e8a19662cd0d
This commit is contained in:
Ricardo Cerqueira 2013-07-18 15:41:06 +01:00
parent d2d1a7ffb1
commit b52874de53

View File

@ -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