summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Brzeziński <brzezinski@google.com>2021-10-19 14:23:04 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-10-19 14:23:04 +0000
commitd331663456a0d156c261b7d3957e42a27fa22857 (patch)
tree3c85a0ad20a8e40f00bd45b050cada665aaecedc
parent7ad0ef6ea95069466573b3972b2fcddf2a3cf755 (diff)
parent3ae0ad0c84ab0ab00536c45cab02a9f95fc7ebf5 (diff)
downloadbonito-sepolicy-d331663456a0d156c261b7d3957e42a27fa22857.tar.gz
Revert "Remove the bdev_type and sysfs_block_type SELinux attributes" am: f8e7785812 am: 7a3794697f am: 6658d5ede0 am: 3ae0ad0c84
Original change: https://android-review.googlesource.com/c/device/google/bonito-sepolicy/+/1862225 Change-Id: Ie6a855e0f3622a82d6a582b073d24b4ee319f3a5
-rw-r--r--vendor/qcom/common/device.te16
-rw-r--r--vendor/qcom/common/file.te2
2 files changed, 9 insertions, 9 deletions
diff --git a/vendor/qcom/common/device.te b/vendor/qcom/common/device.te
index 11ec49bb..b1fa00cd 100644
--- a/vendor/qcom/common/device.te
+++ b/vendor/qcom/common/device.te
@@ -1,15 +1,15 @@
-type ab_block_device, dev_type;
+type ab_block_device, dev_type, bdev_type;
type at_device, dev_type;
type avtimer_device, dev_type;
type bt_device, dev_type;
-type devinfo_block_device, dev_type;
+type devinfo_block_device, dev_type, bdev_type;
type diag_device, dev_type, mlstrustedobject;
type dsp_device, dev_type;
type easel_device, dev_type, mlstrustedobject;
-type gpt_block_device, dev_type;
+type gpt_block_device, dev_type, bdev_type;
type ipa_dev, dev_type;
-type modem_block_device, dev_type;
-type persist_block_device, dev_type;
+type modem_block_device, dev_type, bdev_type;
+type persist_block_device, dev_type, bdev_type;
type qce_device, dev_type;
type qsee_ipc_irq_spss_device, dev_type;
type qdsp_device, dev_type, mlstrustedobject;
@@ -19,10 +19,10 @@ type seemplog_device, dev_type;
type sg_device, dev_type;
type smd_device, dev_type;
type spcom_device, dev_type;
-type ssd_block_device, dev_type;
+type ssd_block_device, dev_type, bdev_type;
type ssr_device, dev_type;
type wlan_device, dev_type;
-type xbl_block_device, dev_type;
+type xbl_block_device, dev_type, bdev_type;
# TODO: Replace KM3 with KM4 (b/112339903)
-type rpmb_device, dev_type;
+type rpmb_device, dev_type, bdev_type;
diff --git a/vendor/qcom/common/file.te b/vendor/qcom/common/file.te
index 5ca58bab..e4435d17 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_mmc, sysfs_type, fs_type;
type sysfs_system_sleep_stats, sysfs_type, fs_type;