Different blkid and fsck execution domains.
Tell vold about which SELinux domains to use for different classes of devices. Also create a directory for vold to store private files. Bug: 19993667 Change-Id: Ib7bc80234f2b13a89b143bf90f147140109570cd
This commit is contained in:
parent
fc0004894a
commit
25775e8e63
1 changed files with 4 additions and 1 deletions
|
|
@ -268,6 +268,7 @@ on post-fs-data
|
|||
chmod 0660 /data/misc/wifi/wpa_supplicant.conf
|
||||
mkdir /data/local 0751 root root
|
||||
mkdir /data/misc/media 0700 media media
|
||||
mkdir /data/misc/vold 0700 root root
|
||||
|
||||
# For security reasons, /data/local/tmp should always be empty.
|
||||
# Do not place files or directories in /data/local/tmp
|
||||
|
|
@ -524,7 +525,9 @@ service servicemanager /system/bin/servicemanager
|
|||
onrestart restart surfaceflinger
|
||||
onrestart restart drm
|
||||
|
||||
service vold /system/bin/vold
|
||||
service vold /system/bin/vold \
|
||||
--blkid_context=u:r:blkid:s0 --blkid_untrusted_context=u:r:blkid_untrusted:s0 \
|
||||
--fsck_context=u:r:fsck:s0 --fsck_untrusted_context=u:r:fsck_untrusted:s0
|
||||
class core
|
||||
socket vold stream 0660 root mount
|
||||
ioprio be 2
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue