[ALPS04318555] PMU path change

PMU path changed, need modify relatd selinux path

MTK-Commit-Id: 9894024d40e75e43fe67405d1cf5fcdd76185eea

Change-Id: I6a30d42d5aacc79947d84dde3d806b205f00c437
CR-Id: ALPS04318555
Feature: Engineering Mode
This commit is contained in:
Juan Rong 2020-01-18 10:10:30 +08:00
parent 74a77e408a
commit d1df7349d6
3 changed files with 18 additions and 1 deletions

View File

@ -48,7 +48,7 @@ allow em_svr proc_partition:file { open read };
# Date : 2018/06/15 # Date : 2018/06/15
# Purpose : EM Power PMU reading/setting # Purpose : EM Power PMU reading/setting
allow em_svr sysfs_pmu:dir { search }; allow em_svr sysfs_pmu:dir { search };
allow em_svr sysfs_pmu:file { open read write }; allow em_svr sysfs_pmu:file { rw_file_perms };
allow em_svr sysfs_pmu:lnk_file { read }; allow em_svr sysfs_pmu:lnk_file { read };
# Date : 2018/06/15 # Date : 2018/06/15
@ -59,3 +59,12 @@ allow em_svr sysfs_spm:file { open read write };
# Date: 2019/04/09 # Date: 2019/04/09
# Purpose: battery temprature setting # Purpose: battery temprature setting
allow em_svr sysfs_battery_temp:file w_file_perms; allow em_svr sysfs_battery_temp:file w_file_perms;
# Date : 2018/10/12
# Purpose : EM Power PMU register reading/setting
allow em_svr debugfs_regmap:dir { search };
allow em_svr debugfs_regmap:file { rw_file_perms };
# Date:2019/04/15
# Purpose: EM Power
allow em_svr toolbox_exec:file { map };

View File

@ -317,6 +317,9 @@ type rilproxy_atci_socket, file_type;
type atci_service_socket, file_type; type atci_service_socket, file_type;
type adb_atci_socket, file_type; type adb_atci_socket, file_type;
# EM Power PMU register reading/setting
type debugfs_regmap, fs_type, debugfs_type;
# Date : 2018/11/01 # Date : 2018/11/01
# Purpose : mtk EM c2k bypass read usb file # Purpose : mtk EM c2k bypass read usb file
type sys_usb_rawbulk, fs_type, sysfs_type; type sys_usb_rawbulk, fs_type, sysfs_type;

View File

@ -59,6 +59,8 @@ genfscon sysfs /devices/platform/battery/Pump_Express u:object_r:sysfs_pump_expr
genfscon sysfs /devices/platform/mt_charger/power_supply u:object_r:sysfs_batteryinfo:s0 genfscon sysfs /devices/platform/mt_charger/power_supply u:object_r:sysfs_batteryinfo:s0
genfscon sysfs /devices/platform/mt-rtc/rtc u:object_r:sysfs_rtc:s0 genfscon sysfs /devices/platform/mt-rtc/rtc u:object_r:sysfs_rtc:s0
genfscon sysfs /devices/platform/mt-pmic u:object_r:sysfs_pmu:s0 genfscon sysfs /devices/platform/mt-pmic u:object_r:sysfs_pmu:s0
genfscon sysfs /devices/platform/1000d000.pwrap/mt-pmic u:object_r:sysfs_pmu:s0
genfscon sysfs /devices/platform/1000d000.pwrap/1000d000.pwrap:mt6359-pmic/mt-pmic u:object_r:sysfs_pmu:s0
genfscon sysfs /devices/platform/mt6333-user u:object_r:sysfs_pmu:s0 genfscon sysfs /devices/platform/mt6333-user u:object_r:sysfs_pmu:s0
genfscon sysfs /devices/platform/mt6311-user u:object_r:sysfs_pmu:s0 genfscon sysfs /devices/platform/mt6311-user u:object_r:sysfs_pmu:s0
genfscon sysfs /devices/platform/mt_usb/musb-hdrc/dual_role_usb u:object_r:sysfs_dual_role_usb20:s0 genfscon sysfs /devices/platform/mt_usb/musb-hdrc/dual_role_usb u:object_r:sysfs_dual_role_usb20:s0
@ -107,6 +109,9 @@ genfscon proc /partitions u:object_r:proc_partition:s0
# allow netd to set MTU # allow netd to set MTU
genfscon sysfs /devices/virtual/net u:object_r:sysfs_net:s0 genfscon sysfs /devices/virtual/net u:object_r:sysfs_net:s0
# mtk EM power PMU register
genfscon debugfs /rt-regmap u:object_r:debugfs_regmap:s0
# Date : 2018/11/01 # Date : 2018/11/01
# Purpose : mtk EM c2k bypass read usb file # Purpose : mtk EM c2k bypass read usb file
genfscon sysfs /devices/virtual/usb_rawbulk u:object_r:sys_usb_rawbulk:s0 genfscon sysfs /devices/virtual/usb_rawbulk u:object_r:sys_usb_rawbulk:s0