[ALPS03951067] EM: selinux for battery

[Detail]
allow EM access battery info

MTK-Commit-Id: cdcee8fe601a984182ded4522acadfe6b70dec66

Change-Id: Ic55a779d3d6883d1dd0828258ff3bf084c8d7706
CR-Id: ALPS03951067
Feature: Fuel Gauge
This commit is contained in:
Juan Rong 2020-01-18 09:58:35 +08:00
parent 8e687077cb
commit 4fef319c9b
2 changed files with 7 additions and 2 deletions

View File

@ -202,3 +202,9 @@ set_prop(radio, mtk_bt_sspdebug_prop)
# Purpose : For EM access vendor property
allow radio vendor_default_prop:file { read getattr open };
# Date : 2018/06/01
# Operation : P migration
# Purpose : For EM access battery info
allow radio sysfs_batteryinfo:dir search;
allow radio sysfs_batteryinfo:file { read write getattr open create};
allow radio sysfs_vbus:file { read getattr open };

View File

@ -66,8 +66,7 @@ allow em_svr sysfs:dir { open read };
# Purpose: battery temprature setting
allow em_svr sysfs_batteryinfo:dir search;
allow em_svr sysfs_batteryinfo:file { write open };
r_dir_file(em_svr, sysfs_batteryinfo);