From 7952f3fc53fad62bce0374a194b6c093b4f8cb49 Mon Sep 17 00:00:00 2001 From: "yuhui.zhang" Date: Sat, 18 Jan 2020 09:57:40 +0800 Subject: [PATCH] [ALPS03914002] Add sepolicy rule for EM [Detail] 1. Add SEPolicy rule for battery log 2. Add SEPolicy rule for EM setting property MTK-Commit-Id: e59cf4c98b75739a0e2e58f098174747951bda5d Change-Id: Ic6cc12fe0a26d2fad5dd6196d598a21fd96b25cb CR-Id: ALPS03914002 Feature: Engineering Mode --- non_plat/radio.te | 6 ++++++ plat_private/em_svr.te | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/non_plat/radio.te b/non_plat/radio.te index 50ee460..634e2de 100644 --- a/non_plat/radio.te +++ b/non_plat/radio.te @@ -196,3 +196,9 @@ set_prop(radio, mtk_debug_wifi_level_prop) # Operation: P migration # Purpose: Allow EM to set BT ssp debug mode property set_prop(radio, mtk_bt_sspdebug_prop) + +# Date : 2018/05/29 +# Operation : P migration +# Purpose : For EM access vendor property +allow radio vendor_default_prop:file { read getattr open }; + diff --git a/plat_private/em_svr.te b/plat_private/em_svr.te index ed42b5d..c83aa71 100644 --- a/plat_private/em_svr.te +++ b/plat_private/em_svr.te @@ -60,12 +60,12 @@ allow em_svr toolbox_exec:file { getattr execute read open execute_no_trans }; # Date: WK1812 # Purpose: sys file access -#allow em_svr sysfs:file { getattr read write open }; allow em_svr sysfs:dir { open read }; -# Date: WK1812 -# Purpose: proc file access -#allow em_svr proc:file { getattr open read write }; +# Date: WK1822 +# Purpose: battery temprature setting +allow em_svr sysfs_batteryinfo:dir search; +allow em_svr sysfs_batteryinfo:file { write open };