summaryrefslogtreecommitdiffstats
path: root/non_plat/em_svr.te
diff options
context:
space:
mode:
authorTimo Liao <timo.liao@mediatek.com>2019-05-17 14:49:22 +0800
committerTimo Liao <timo.liao@mediatek.com>2019-05-17 14:49:22 +0800
commita0e12cdf7848d47c065cc10eeb144a929dcccace (patch)
tree8b59e264e27417ce6d83cf45fa249aadab7f2a89 /non_plat/em_svr.te
parent200441e66598da3ea48761acddb8bee4d3d519ae (diff)
downloaddevice_mediatek_wembley-sepolicy-a0e12cdf7848d47c065cc10eeb144a929dcccace.tar.gz
device_mediatek_wembley-sepolicy-a0e12cdf7848d47c065cc10eeb144a929dcccace.tar.bz2
device_mediatek_wembley-sepolicy-a0e12cdf7848d47c065cc10eeb144a929dcccace.zip
[ALPS04431500] battery: add selinux policy in em_svr
add new labels for em_svr mode Change-Id: Ic198120736d63e4b8d1615092b39ba26269c0518 Signed-off-by: Timo Liao <timo.liao@mediatek.com> CR-Id: ALPS04431500 Feature: Fuel Gauge
Diffstat (limited to 'non_plat/em_svr.te')
-rw-r--r--non_plat/em_svr.te7
1 files changed, 7 insertions, 0 deletions
diff --git a/non_plat/em_svr.te b/non_plat/em_svr.te
index 8e1274c..5c00360 100644
--- a/non_plat/em_svr.te
+++ b/non_plat/em_svr.te
@@ -59,6 +59,13 @@ allow em_svr sysfs_spm:file { open read write };
# Date: 2019/04/09
# Purpose: battery temprature setting
allow em_svr sysfs_battery_temp:file w_file_perms;
+allow em_svr sysfs_battery_consumption:file r_file_perms;
+allow em_svr sysfs_power_on_vol:file r_file_perms;
+allow em_svr sysfs_power_off_vol:file r_file_perms;
+allow em_svr sysfs_fg_disable:file w_file_perms;
+allow em_svr sysfs_dis_nafg:file w_file_perms;
+
+
# Date : 2018/10/12
# Purpose : EM Power PMU register reading/setting