common: Label efs battery files
authorderfelot <derfelot.git@gmail.com>
Mon, 13 Apr 2020 20:31:29 +0000 (22:31 +0200)
committerderfelot <derfelot.git@gmail.com>
Mon, 13 Apr 2020 20:59:21 +0000 (22:59 +0200)
Change-Id: I76e5f299e122a2933a4fc451c06930ad6f2c5255

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

index b584e3cb906586df51d945e51f663a2763d936c0..f125b415cf1f9fe6574f82505c1bb469620c2c54 100644 (file)
@@ -11,6 +11,7 @@ type wifi_vendor_data_file, file_type, data_file_type;
 
 # EFS
 type app_efs_file, file_type;
+type battery_efs_file, file_type;
 type bin_nv_data_efs_file, file_type;
 type cpk_efs_file, file_type;
 type imei_efs_file, file_type;
index 8e91092e4704551cdb9d0733c15c3d7dfde2169f..fb80364aa22bd7a754b8772fb98c90a7b885ac8d 100644 (file)
@@ -78,6 +78,7 @@
 /dev/umts_router                             u:object_r:vendor_radio_device:s0
 
 ### EFS
+/efs/Battery(/.*)?                           u:object_r:battery_efs_file:s0
 /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