diff options
author | Bart Van Assche <bvanassche@google.com> | 2021-08-17 14:51:56 -0700 |
---|---|---|
committer | Bart Van Assche <bvanassche@google.com> | 2021-08-17 14:54:21 -0700 |
commit | 9d762a5e619a153d2994107482ba6cc91f2efb04 (patch) | |
tree | a054928ad048cb5796f0251ab47ff8a6f523f8a6 | |
parent | 53bdd49fdc08b78f04b1da9a5843a01b698ead88 (diff) | |
download | crosshatch-sepolicy-9d762a5e619a153d2994107482ba6cc91f2efb04.tar.gz |
Associate the sysfs_block_type attribute with sysfs SCSI device informationandroid-s-beta-5android-s-beta-5
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: I8cd214601179418b02e80bae0b4c1b47a529df43
Signed-off-by: Bart Van Assche <bvanassche@google.com>
-rw-r--r-- | vendor/qcom/common/file.te | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/qcom/common/file.te b/vendor/qcom/common/file.te index 14f4da8..13d6008 100644 --- a/vendor/qcom/common/file.te +++ b/vendor/qcom/common/file.te @@ -13,7 +13,7 @@ type sysfs_msm_wlan, sysfs_type, fs_type; type sysfs_poweroff, sysfs_type, fs_type; type sysfs_rmtfs, sysfs_type, fs_type; type sysfs_soc, 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 sysfs_scsi_devices_other, sysfs_type, fs_type; type sysfs_system_sleep_stats, sysfs_type, fs_type; type sysfs_timestamp_switch, sysfs_type, fs_type; |