ec50aa5180
Addressing b/194450129 requires configuring the I/O scheduler and the queue depth of loop devices. Doing this in a generic way requires iterating over the block devices under /sys/class/block and also to examine the properties of the boot device (/dev/sda). Hence this patch that allows 'init' and 'apexd' to read the properties of all block devices. The patch that configures the queue depth is available at https://android-review.googlesource.com/c/platform/system/core/+/1783847. Test: Built Android images, installed these on an Android device and verified that modified init and apexd processes do not trigger any SELinux complaints. Change-Id: Icb62449fe0d21b3790198768a2bb8e808c7b968e Signed-off-by: Bart Van Assche <bvanassche@google.com>
123 lines
4.6 KiB
Text
123 lines
4.6 KiB
Text
# Device types
|
|
type device, dev_type, fs_type;
|
|
type ashmem_device, dev_type, mlstrustedobject;
|
|
type ashmem_libcutils_device, dev_type, mlstrustedobject;
|
|
type audio_device, dev_type;
|
|
type binder_device, dev_type, mlstrustedobject;
|
|
type hwbinder_device, dev_type, mlstrustedobject;
|
|
type vndbinder_device, dev_type;
|
|
type block_device, dev_type, bdev_type;
|
|
type camera_device, dev_type;
|
|
type dm_device, dev_type, bdev_type;
|
|
type dm_user_device, dev_type, bdev_type;
|
|
type keychord_device, dev_type;
|
|
type loop_control_device, dev_type;
|
|
type loop_device, dev_type, bdev_type;
|
|
type pmsg_device, dev_type, mlstrustedobject;
|
|
type radio_device, dev_type;
|
|
type ram_device, dev_type, bdev_type;
|
|
type rtc_device, dev_type;
|
|
type vd_device, dev_type;
|
|
type vold_device, dev_type;
|
|
type console_device, dev_type;
|
|
type fscklogs, dev_type;
|
|
# GPU (used by most UI apps)
|
|
type gpu_device, dev_type, mlstrustedobject;
|
|
type graphics_device, dev_type;
|
|
type hw_random_device, dev_type;
|
|
type input_device, dev_type;
|
|
type port_device, dev_type;
|
|
type lowpan_device, dev_type;
|
|
type mtp_device, dev_type, mlstrustedobject;
|
|
type nfc_device, dev_type;
|
|
type ptmx_device, dev_type, mlstrustedobject;
|
|
type kmsg_device, dev_type, mlstrustedobject;
|
|
type kmsg_debug_device, dev_type;
|
|
type null_device, dev_type, mlstrustedobject;
|
|
type random_device, dev_type, mlstrustedobject;
|
|
type secure_element_device, dev_type;
|
|
type sensors_device, dev_type;
|
|
type serial_device, dev_type;
|
|
type socket_device, dev_type;
|
|
type owntty_device, dev_type, mlstrustedobject;
|
|
type tty_device, dev_type;
|
|
type video_device, dev_type;
|
|
type zero_device, dev_type, mlstrustedobject;
|
|
type fuse_device, dev_type, mlstrustedobject;
|
|
type iio_device, dev_type;
|
|
type ion_device, dev_type, mlstrustedobject;
|
|
type dmabuf_heap_device, dmabuf_heap_device_type, dev_type, mlstrustedobject;
|
|
type dmabuf_system_heap_device, dmabuf_heap_device_type, dev_type, mlstrustedobject;
|
|
type dmabuf_system_secure_heap_device, dmabuf_heap_device_type, dev_type, mlstrustedobject;
|
|
type qtaguid_device, dev_type;
|
|
type watchdog_device, dev_type;
|
|
type uhid_device, dev_type, mlstrustedobject;
|
|
type uio_device, dev_type;
|
|
type tun_device, dev_type, mlstrustedobject;
|
|
type usbaccessory_device, dev_type, mlstrustedobject;
|
|
type usb_device, dev_type, mlstrustedobject;
|
|
type usb_serial_device, dev_type;
|
|
type gnss_device, dev_type;
|
|
type properties_device, dev_type;
|
|
type properties_serial, dev_type;
|
|
type property_info, dev_type;
|
|
|
|
# All devices have a uart for the hci
|
|
# attach service. The uart dev node
|
|
# varies per device. This type
|
|
# is used in per device policy
|
|
type hci_attach_dev, dev_type;
|
|
|
|
# All devices have a rpmsg device for
|
|
# achieving remoteproc and rpmsg modules
|
|
type rpmsg_device, dev_type;
|
|
|
|
# Partition layout block device
|
|
type root_block_device, dev_type, bdev_type;
|
|
|
|
# factory reset protection block device
|
|
type frp_block_device, dev_type, bdev_type;
|
|
|
|
# System block device mounted on /system.
|
|
# Documented at https://source.android.com/devices/bootloader/partitions-images
|
|
type system_block_device, dev_type, bdev_type;
|
|
|
|
# Recovery block device.
|
|
# Documented at https://source.android.com/devices/bootloader/partitions-images
|
|
type recovery_block_device, dev_type, bdev_type;
|
|
|
|
# boot block device.
|
|
# Documented at https://source.android.com/devices/bootloader/partitions-images
|
|
type boot_block_device, dev_type, bdev_type;
|
|
|
|
# Userdata block device mounted on /data.
|
|
# Documented at https://source.android.com/devices/bootloader/partitions-images
|
|
type userdata_block_device, dev_type, bdev_type;
|
|
|
|
# Cache block device mounted on /cache.
|
|
# Documented at https://source.android.com/devices/bootloader/partitions-images
|
|
type cache_block_device, dev_type, bdev_type;
|
|
|
|
# Block device for any swap partition.
|
|
type swap_block_device, dev_type, bdev_type;
|
|
|
|
# Metadata block device used for encryption metadata.
|
|
# Assign this type to the partition specified by the encryptable=
|
|
# mount option in your fstab file in the entry for userdata.
|
|
# Documented at https://source.android.com/devices/bootloader/partitions-images
|
|
type metadata_block_device, dev_type, bdev_type;
|
|
|
|
# The 'misc' partition used by recovery and A/B.
|
|
# Documented at https://source.android.com/devices/bootloader/partitions-images
|
|
type misc_block_device, dev_type, bdev_type;
|
|
|
|
# 'super' partition to be used for logical partitioning.
|
|
type super_block_device, super_block_device_type, dev_type, bdev_type;
|
|
|
|
# sdcard devices; normally vold uses the vold_block_device label and creates a
|
|
# separate device node. gsid, however, accesses the original devide node
|
|
# created through uevents, so we use a separate label.
|
|
type sdcard_block_device, dev_type, bdev_type;
|
|
|
|
# Userdata device file for filesystem tunables
|
|
type userdata_sysdev, dev_type;
|