summaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@google.com>2021-08-17 14:51:37 -0700
committerBart Van Assche <bvanassche@google.com>2021-08-17 14:54:46 -0700
commitfaf76f81f5bba65a6f9cf745c4be9c1e0850b1a9 (patch)
tree3aa24e79d0f21c2344c6dea6c4b811ce378e45ec /vendor
parentaace3214639d6226f075b8cbe6b2e72be95745b0 (diff)
downloadsunfish-sepolicy-faf76f81f5bba65a6f9cf745c4be9c1e0850b1a9.tar.gz
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: I16746ca6bc55294db83a8aea87f16fe7ad81d97f Signed-off-by: Bart Van Assche <bvanassche@google.com>
Diffstat (limited to 'vendor')
-rw-r--r--vendor/qcom/common/file.te2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/qcom/common/file.te b/vendor/qcom/common/file.te
index 23073eb..80594f3 100644
--- a/vendor/qcom/common/file.te
+++ b/vendor/qcom/common/file.te
@@ -140,7 +140,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 proc_sched_energy_aware, proc_type, fs_type;
type proc_sched_updown_migrate, proc_type, fs_type;
type debugfs_wlan, debugfs_type, fs_type;