common: label partitions for older models
authorTim Zimmermann <tim@linux4.de>
Mon, 15 Feb 2021 07:58:04 +0000 (08:58 +0100)
committerJan Altensen <info@stricted.net>
Tue, 29 Mar 2022 22:34:30 +0000 (00:34 +0200)
* On devices launched with Oreo and older
  these partitions have uppercase names

Change-Id: Ife35b17c32201f85a840e95491941e78427c813b

common/vendor/device.te
common/vendor/file_contexts

index 47639b2d862e6ec9a6bbf89058bd1476f5d53d26..fb19d650dd8dc103a9471bb43519f9a5319ed9a3 100644 (file)
@@ -1,4 +1,5 @@
 # device.te
+type cpefs_block_device, dev_type;
 type efs_block_device, dev_type;
 type dqmdbg_block_device, dev_type;
 type dtbo_block_device, dev_type;
index 91ae1e59c6f542016bfedf033dc1d026dc0569c5..2978c162a90c298e68c459f5f36d639943deac0d 100644 (file)
 /data/vendor/secradio(/.*)?                  u:object_r:radio_vendor_data_file:s0
 
 ### DEV
-/dev/block/platform/.+/by-name/boot          u:object_r:boot_block_device:s0
-/dev/block/platform/.+/by-name/cache         u:object_r:cache_block_device:s0
-/dev/block/platform/.+/by-name/efs           u:object_r:efs_block_device:s0
-/dev/block/platform/.+/by-name/dqmdbg        u:object_r:dqmdbg_block_device:s0
-/dev/block/platform/.+/by-name/dtbo          u:object_r:dtbo_block_device:s0
-/dev/block/platform/.+/by-name/keydata       u:object_r:keydata_block_device:s0
-/dev/block/platform/.+/by-name/keyrefuge     u:object_r:keyrefuge_block_device:s0
-/dev/block/platform/.+/by-name/metadata      u:object_r:metadata_block_device:s0
-/dev/block/platform/.+/by-name/misc          u:object_r:misc_block_device:s0
-/dev/block/platform/.+/by-name/modem         u:object_r:modem_block_device:s0
-/dev/block/platform/.+/by-name/omr           u:object_r:omr_block_device:s0
-/dev/block/platform/.+/by-name/persistent    u:object_r:frp_block_device:s0
-/dev/block/platform/.+/by-name/radio         u:object_r:radio_block_device:s0
-/dev/block/platform/.+/by-name/recovery      u:object_r:recovery_block_device:s0
-/dev/block/platform/.+/by-name/sec_efs       u:object_r:sec_efs_block_device:s0
-/dev/block/platform/.+/by-name/super         u:object_r:super_block_device:s0
-/dev/block/platform/.+/by-name/userdata      u:object_r:userdata_block_device:s0
+/dev/block/platform/.+/by-name/(boot|BOOT)          u:object_r:boot_block_device:s0
+/dev/block/platform/.+/by-name/(cache|CACHE)        u:object_r:cache_block_device:s0
+/dev/block/platform/.+/by-name/(cpefs|CPEFS)        u:object_r:cpefs_block_device:s0
+/dev/block/platform/.+/by-name/(efs|EFS)            u:object_r:efs_block_device:s0
+/dev/block/platform/.+/by-name/(dqmdbg|DQMDBG)      u:object_r:dqmdbg_block_device:s0
+/dev/block/platform/.+/by-name/dtbo                 u:object_r:dtbo_block_device:s0
+/dev/block/platform/.+/by-name/keydata              u:object_r:keydata_block_device:s0
+/dev/block/platform/.+/by-name/keyrefuge            u:object_r:keyrefuge_block_device:s0
+/dev/block/platform/.+/by-name/metadata             u:object_r:metadata_block_device:s0
+/dev/block/platform/.+/by-name/(misc|MISC)          u:object_r:misc_block_device:s0
+/dev/block/platform/.+/by-name/modem                u:object_r:modem_block_device:s0
+/dev/block/platform/.+/by-name/(omr|OMR)            u:object_r:omr_block_device:s0
+/dev/block/platform/.+/by-name/(persistent|PERSISTENT) u:object_r:frp_block_device:s0
+/dev/block/platform/.+/by-name/(radio|RADIO)        u:object_r:radio_block_device:s0
+/dev/block/platform/.+/by-name/(recovery|RECOVERY)  u:object_r:recovery_block_device:s0
+/dev/block/platform/.+/by-name/sec_efs              u:object_r:sec_efs_block_device:s0
+/dev/block/platform/.+/by-name/super                u:object_r:super_block_device:s0
+/dev/block/platform/.+/by-name/(userdata|USERDATA)  u:object_r:userdata_block_device:s0
 
 /dev/esfp[0-9]                               u:object_r:fp_sensor_device:s0
 /dev/batch_io                                u:object_r:io_device:s0