From 9db5957d1345883388b91e4d7c4f2aabbe794e2a Mon Sep 17 00:00:00 2001 From: Matt Mower Date: Tue, 4 Aug 2015 21:48:32 -0500 Subject: recovery: Separate blkid.tab for vold in recovery vold does not have selinux permissions to read/write files in rootfs. By default, libext2_blkid writes a cache file to /etc/blkid.tab. Set environment variable BLKID_FILE just for use by the vold service, changing the cache file location to /tmp/vold_blkid.tab which can then take advantage of context vold_tmpfs. Change-Id: I70d233d3d6f4e82bc7d781a04ef7707b733b4a1b --- etc/init.rc | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/init.rc b/etc/init.rc index 61e8316..50f2454 100644 --- a/etc/init.rc +++ b/etc/init.rc @@ -126,6 +126,7 @@ service vold /sbin/minivold \ socket vold stream 0660 root mount socket cryptd stream 0660 root mount ioprio be 2 + setenv BLKID_FILE /tmp/vold_blkid.tab # setup_adbd will start adb once it has checked the keys on property:ro.debuggable=1 -- cgit v1.1