Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 25775e8e authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

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
parent fc000489
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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