From 7b393b53c4ed631316c7c0731ef10ff87c1d2b4f Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 17 Aug 2021 14:52:30 -0700 Subject: Associate the sysfs_block_type attribute with sysfs SCSI device information Patch https://android-review.googlesource.com/c/platform/system/sepolicy/+/1783947 ("Allow the init and apexd processes to read all block device properties") associates the sysfs_block_type attribute with the files under /sys/class/block. SCSI device information needs to be labeled separately because it exists elsewhere: # ls -ld /sys/class/block/sda lrwxrwxrwx 1 root root 0 2021-08-17 14:49 /sys/class/block/sda -> ../../devices/platform/14700000.ufs/host0/target0:0:0/0:0:0:0/block/sda Hence this patch that associates the sysfs_block_type attribute with SCSI device information in sysfs. Bug: 196982345 Test: Untested. Change-Id: Ie07f2f570aa404276b908a0d6aaa3fe5059de080 Signed-off-by: Bart Van Assche --- vendor/qcom/common/file.te | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/qcom/common/file.te b/vendor/qcom/common/file.te index 1573c2d..1cfad85 100644 --- a/vendor/qcom/common/file.te +++ b/vendor/qcom/common/file.te @@ -51,7 +51,7 @@ type hal_neuralnetworks_data_file, file_type, data_file_type; type mpss_rfs_data_file, data_file_type, file_type; type rfs_tombstone_data_file, data_file_type, file_type; type sysfs_msm_wlan, sysfs_type, fs_type; -type sysfs_scsi_devices_0000, sysfs_type, fs_type; +type sysfs_scsi_devices_0000, sysfs_type, fs_type, sysfs_block_type; type debugfs_sched_features, debugfs_type, fs_type; type debugfs_wlan, debugfs_type, fs_type; type debugfs_ipc, debugfs_type, fs_type; -- cgit v1.2.3