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: I0246d5fd0b5a47776dbe2d8ce43ac45421b952af
Signed-off-by: Bart Van Assche <bvanassche@google.com>
diff --git a/sepolicy/file.te b/sepolicy/file.te
index 54de779..919ef02 100644
--- a/sepolicy/file.te
+++ b/sepolicy/file.te
@@ -5,5 +5,5 @@
type sysfs_udc, fs_type, sysfs_type;
type dri_device, dev_type;
type rmtfs_device, dev_type;
-type modem_block_device, dev_type;
+type modem_block_device, dev_type, bdev_type;
type tqftpserv_vendor_data_file, file_type, data_file_type, mlstrustedobject;