From 6265ea892885bdf1ab8696124ad3301253a296b3 Mon Sep 17 00:00:00 2001 From: derfelot Date: Mon, 13 Apr 2020 22:31:29 +0200 Subject: [PATCH] common: Label efs battery files Change-Id: I76e5f299e122a2933a4fc451c06930ad6f2c5255 --- common/vendor/file.te | 1 + common/vendor/file_contexts | 1 + 2 files changed, 2 insertions(+) diff --git a/common/vendor/file.te b/common/vendor/file.te index b584e3c..f125b41 100644 --- a/common/vendor/file.te +++ b/common/vendor/file.te @@ -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; diff --git a/common/vendor/file_contexts b/common/vendor/file_contexts index 8e91092..fb80364 100644 --- a/common/vendor/file_contexts +++ b/common/vendor/file_contexts @@ -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 -- 2.20.1