Merge "[ALPS03861775] Remove the sysfs_power_supply label" into alps-trunk-p0.basic

Change-Id: I3b1741c833f3f4308cbfa55da01fb79aa3bd38cc
MTK-Commit-Id: 0ffe2945e2d33b28c18bc00308701cc7e4321312
This commit is contained in:
Elvin Lin 2020-01-18 09:34:49 +08:00 committed by Gerrit Code Review
commit faea99188f
5 changed files with 8 additions and 7 deletions

View File

@ -56,7 +56,6 @@ type proc_lk_env, fs_type;
type proc_ged, fs_type;
type proc_perfmgr, fs_type;
type sysfs_therm, fs_type, sysfs_type;
type sysfs_power_supply, fs_type, sysfs_type;
type sysfs_fps, fs_type, sysfs_type;
type sysfs_ccci, fs_type, sysfs_type;
type sysfs_ssw, fs_type,sysfs_type;

View File

@ -473,7 +473,6 @@
/sys/bus/platform/drivers/dev_info/dev_info u:object_r:sysfs_devinfo:s0
/sys/firmware/devicetree/base/chosen/atag\,devinfo u:object_r:sysfs_devinfo:s0
/sys/devices/virtual/thermal(/.*)? u:object_r:sysfs_therm:s0
/sys/devices/platform/battery/power_supply(/.*)? u:object_r:sysfs_power_supply:s0
/sys/devices/virtual/switch/fps(/.*)? u:object_r:sysfs_fps:s0
/sys/class/BOOT/BOOT/boot/boot_mode(/.*)? u:object_r:sysfs_boot:s0

View File

@ -23,3 +23,6 @@ genfscon proc /perfmgr u:object_r:proc_perfmgr:s0
genfscon iso9660 / u:object_r:iso9660:s0
genfscon rawfs / u:object_r:rawfs:s0
genfscon fuseblk / u:object_r:fuseblk:s0
genfscon sysfs /devices/platform/battery/power_supply u:object_r:sysfs_batteryinfo:s0
genfscon sysfs /devices/platform/mt_charger/power_supply u:object_r:sysfs_batteryinfo:s0

View File

@ -264,8 +264,8 @@ allow mtk_hal_camera mtk_cmdq_device:chr_file { read ioctl open };
# Date : WK17.36
# Operation : O Migration
# Purpose: Allow to access battery status
allow mtk_hal_camera sysfs_power_supply:dir search;
allow mtk_hal_camera sysfs_power_supply:file { getattr open read };
allow mtk_hal_camera sysfs_batteryinfo:dir search;
allow mtk_hal_camera sysfs_batteryinfo:file { getattr open read };
# Date : WK17.39
# Operation : O Migration
@ -291,4 +291,4 @@ allow mtk_hal_camera aee_aedv:unix_stream_socket connectto;
# Date : WK18.02
# Stage: O Migration
# Purpose: ISP tuning remapping
allow mtk_hal_camera mediatek_prop:property_service set;
allow mtk_hal_camera mediatek_prop:property_service set;

View File

@ -28,8 +28,8 @@ allow untrusted_app_25 proc_thermal:file { getattr open read };
allow untrusted_app_25 sysfs_fps:dir search;
allow untrusted_app_25 sysfs_fps:file { getattr open read };
allow untrusted_app_25 sysfs_power_supply:dir search;
allow untrusted_app_25 sysfs_power_supply:file { getattr open read };
allow untrusted_app_25 sysfs_batteryinfo:dir search;
allow untrusted_app_25 sysfs_batteryinfo:file { getattr open read };
allow untrusted_app_25 sysfs_therm:dir { open read search };
allow untrusted_app_25 sysfs_therm:file { getattr open read };