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: I8cd214601179418b02e80bae0b4c1b47a529df43
Signed-off-by: Bart Van Assche <bvanassche@google.com>
1 file changed