From aace3214639d6226f075b8cbe6b2e72be95745b0 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 13 Aug 2021 11:38:47 -0700 Subject: Add the 'bdev_type' attribute to all block devices The following patch iterates over all block devices: https://android-review.googlesource.com/c/platform/system/core/+/1783847/9 The following patch grants 'init' and 'apexd' permission to iterate over all block devices: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1783947 The above SELinux policy change requires to add the 'bdev_type' attribute to all block devices. Hence this patch. Bug: 194450129 Test: Untested. Change-Id: I40776e26f4300859485759b440575d12d779b5a9 Signed-off-by: Bart Van Assche --- vendor/google/device.te | 2 +- vendor/qcom/common/device.te | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'vendor') diff --git a/vendor/google/device.te b/vendor/google/device.te index db58020..380f10a 100644 --- a/vendor/google/device.te +++ b/vendor/google/device.te @@ -3,6 +3,6 @@ type ipu_device, dev_type, mlstrustedobject; type ramoops_device, dev_type; type maxfg_device, dev_type; type pwrstats_device, dev_type; -type dp_block_device, dev_type; +type dp_block_device, dev_type, bdev_type; type qg_device, dev_type; type battery_history_device, dev_type; diff --git a/vendor/qcom/common/device.te b/vendor/qcom/common/device.te index 211d3d4..04fe462 100644 --- a/vendor/qcom/common/device.te +++ b/vendor/qcom/common/device.te @@ -19,7 +19,7 @@ type rpmb_device, dev_type; type sg_device, dev_type; type dip_device, dev_type; type sd_device, dev_type; -type ssd_block_device, dev_type; +type ssd_block_device, dev_type, bdev_type; type esoc_device, dev_type; type ssr_device, dev_type; type ramdump_device, dev_type; @@ -50,12 +50,12 @@ type avtimer_device, dev_type; type at_device, dev_type; type bt_device, dev_type; type wlan_device, dev_type; -type rawdump_block_device, dev_type; -type custom_ab_block_device, dev_type; -type xbl_block_device, dev_type; -type gpt_block_device, dev_type; -type modem_block_device, dev_type; -type uefi_block_device, dev_type; -type persist_block_device, dev_type; +type rawdump_block_device, dev_type, bdev_type; +type custom_ab_block_device, dev_type, bdev_type; +type xbl_block_device, dev_type, bdev_type; +type gpt_block_device, dev_type, bdev_type; +type modem_block_device, dev_type, bdev_type; +type uefi_block_device, dev_type, bdev_type; +type persist_block_device, dev_type, bdev_type; type npu_device, dev_type; -type devinfo_block_device, dev_type; +type devinfo_block_device, dev_type, bdev_type; -- cgit v1.2.3