maybe fix sdcardd SELinux denial.
The setup for /data/media on flounder is inconsistent with
every other device. Make consistent.
Maybe addresses the following denials:
<5>[ 438.978714] type=1400 audit(947695523.619:15): avc: denied { write } for pid=197 comm="sdcard" name="0" dev="mmcblk0p25" ino=553793 scontext=u:r:sdcardd:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir
<5>[ 3474.016356] type=1400 audit(947698558.659:27): avc: denied { open } for pid=197 comm="sdcard" path="/data/media/0" dev="mmcblk0p25" ino=553793 scontext=u:r:sdcardd:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir
<5>[ 3656.032672] type=1400 audit(947698740.679:29): avc: denied { read } for pid=196 comm="sdcard" name="0" dev="mmcblk0p25" ino=553793 scontext=u:r:sdcardd:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir
Bug: 13193252
Change-Id: I5b12557604bf2a68ffb06d783d4e5d5e2c7fe8de
diff --git a/init.flounder.rc b/init.flounder.rc
index 54c9a10..762ccfd 100644
--- a/init.flounder.rc
+++ b/init.flounder.rc
@@ -18,6 +18,9 @@
mkdir /factory
on post-fs-data
+ mkdir /data/media 0770 media_rw media_rw
+ restorecon_recursive /data/media
+
setprop vold.post_fs_data_done 1
on boot