common: Label efs partion
authorAndreas Schneider <asn@cryptomilk.org>
Fri, 27 Mar 2020 07:25:24 +0000 (08:25 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 2 Apr 2020 04:57:50 +0000 (06:57 +0200)
Change-Id: I19e4cd21cf4a9e1eed6d8826b829fbc1f4ed9ddd

common/vendor/file.te
common/vendor/file_contexts

index ee01cbf80088ca4bfcee472133148c4fe60b4c96..6e655ea918c605969dfca6610a9e133909327b50 100644 (file)
@@ -5,6 +5,17 @@ type biometrics_vendor_data_file, file_type, data_file_type;
 type conn_vendor_data_file, file_type, data_file_type;
 type wifi_vendor_data_file, file_type, data_file_type;
 
+# EFS
+type app_efs_file, file_type;
+type bin_nv_data_efs_file, file_type;
+type imei_efs_file, file_type;
+type nfc_efs_file, file_type;
+type pfw_efs_file, file_type;
+type prov_efs_file, file_type;
+type sec_efs_file, file_type;
+type tee_efs_file, file_type;
+type wifi_efs_file, file_type;
+
 ### SYSFS
 type sysfs_battery, sysfs_type, r_fs_type, fs_type;
 type sysfs_fingerprint, sysfs_type, r_fs_type, fs_type;
index 0f4d62a0de44893f56b9398b74eecf82ff9b7e0c..eafc9bd2b4093eeb3624b686dee21be907545633 100644 (file)
@@ -8,6 +8,33 @@
 ### DEV
 /dev/esfp[0-9]                               u:object_r:fp_sensor_device:s0
 
+### EFS
+/efs/DAK(/.*)?                               u:object_r:prov_efs_file:s0
+/efs/afc(/.*)?                               u:object_r:sec_efs_file:s0
+/efs/bluetooth(/.*)?                         u:object_r:bluetooth_efs_file:s0
+/efs/imei(/.*)?                              u:object_r:imei_efs_file:s0
+/efs/nfc(/.*)?                               u:object_r:nfc_efs_file:s0
+/efs/nv_data\.bin(.*)                        u:object_r:bin_nv_data_efs_file:s0
+/efs/pfw_data(/.*)?                          u:object_r:pfw_efs_file:s0
+/efs/prov(/.*)?                              u:object_r:prov_efs_file:s0
+/efs/prov_data(/.*)?                         u:object_r:prov_efs_file:s0
+/efs/root(/.*)?                              u:object_r:app_efs_file:s0
+/efs/tee(/.*)?                               u:object_r:tee_efs_file:s0
+/efs/wifi(/.*)?                              u:object_r:wifi_efs_file:s0
+
+/mnt/vendor/efs(/.*)?                        u:object_r:efs_file:s0
+/mnt/vendor/efs/DAK(/.*)?                    u:object_r:prov_efs_file:s0
+/mnt/vendor/efs/afc(/.*)?                    u:object_r:sec_efs_file:s0
+/mnt/vendor/efs/bluetooth(/.*)?              u:object_r:bluetooth_efs_file:s0
+/mnt/vendor/efs/imei(/.*)?                   u:object_r:imei_efs_file:s0
+/mnt/vendor/efs/nv_data\.bin(.*)             u:object_r:bin_nv_data_efs_file:s0
+/mnt/vendor/efs/pfw_data(/.*)?               u:object_r:pfw_efs_file:s0
+/mnt/vendor/efs/prov(/.*)?                   u:object_r:prov_efs_file:s0
+/mnt/vendor/efs/prov_data(/.*)?              u:object_r:prov_efs_file:s0
+/mnt/vendor/efs/root(/.*)?                   u:object_r:app_efs_file:s0
+/mnt/vendor/efs/tee(/.*)?                    u:object_r:tee_efs_file:s0
+/mnt/vendor/efs/wifi(/.*)?                   u:object_r:wifi_efs_file:s0
+
 ### VENDOR
 /(vendor|system/vendor)/bin/hw/android\.hardware\.biometrics\.fingerprint@[0-9].[0-9]-service\.samsung    u:object_r:hal_fingerprint_default_exec:s0
 /(vendor|system/vendor)/bin/hw/android\.hardware\.light@[0-9].[0-9]-service\.samsung              u:object_r:hal_light_default_exec:s0