sm6150-common: sepolicy: Label cust, system and vendor block devices as system_block_device

Change-Id: Id230ee4893e67689e9162e834e9c7b9c5482c6c8
This commit is contained in:
Arian 2023-06-04 15:19:08 +02:00
parent 187d4ed71c
commit ffd0ded683
2 changed files with 11 additions and 0 deletions

View File

@ -1 +1,4 @@
# Block devices
typeattribute system_block_device super_block_device_type;
type lirc_device, dev_type;

View File

@ -1,6 +1,14 @@
# Audio
/dev/socket/audio_hw_socket u:object_r:audio_socket:s0
# Block devices
/dev/block/platform/soc/1d84000\.ufshc/by-name/cust u:object_r:system_block_device:s0
/dev/block/platform/soc/1d84000\.ufshc/by-name/system u:object_r:system_block_device:s0
/dev/block/platform/soc/1d84000\.ufshc/by-name/vendor u:object_r:system_block_device:s0
/dev/block/platform/soc/7c4000\.sdhci/by-name/cust u:object_r:system_block_device:s0
/dev/block/platform/soc/7c4000\.sdhci/by-name/system u:object_r:system_block_device:s0
/dev/block/platform/soc/7c4000\.sdhci/by-name/vendor u:object_r:system_block_device:s0
# Camera
/mnt/vendor/persist/camera(/.*)? u:object_r:vendor_persist_camera_file:s0