aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2015-08-04 21:48:32 -0500
committerTom Marshall <tdm@cyngn.com>2015-11-25 15:35:48 -0800
commit9db5957d1345883388b91e4d7c4f2aabbe794e2a (patch)
tree24896f4e35bd8f5d032648fa9b85d3fd9482b977 /etc
parentcacf65446dde64dc47c9a4d9a6af002f564274ea (diff)
downloadbootable_recovery-9db5957d1345883388b91e4d7c4f2aabbe794e2a.tar.gz
bootable_recovery-9db5957d1345883388b91e4d7c4f2aabbe794e2a.tar.bz2
bootable_recovery-9db5957d1345883388b91e4d7c4f2aabbe794e2a.zip
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
Diffstat (limited to 'etc')
-rw-r--r--etc/init.rc1
1 files changed, 1 insertions, 0 deletions
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