[ALPS04383536] AEE: add some new rules

add some new rules for not exit files in basic/non_plat/,
allow dumpstate to open/read files

MTK-Commit-Id: 7d8021e582f9c10b7f9574f4fcdadee0be5d3c99

Change-Id: Ifc1ca446ce6cd40e36835acaf52ca5a12efedcdb
CR-Id: ALPS04383536
Feature: Android Exception Engine(AEE)
This commit is contained in:
Huaiming Li 2020-01-18 10:11:11 +08:00
parent 6f9e880db8
commit 6572ac2fa3
3 changed files with 27 additions and 0 deletions

View File

@ -131,3 +131,18 @@ allow dumpstate proc_cmdq_debug:file r_file_perms;
#Purpose: Allow dumpstate to read /proc/cpuhvfs/dbg_repo #Purpose: Allow dumpstate to read /proc/cpuhvfs/dbg_repo
allow dumpstate proc_dbg_repo:file r_file_perms; allow dumpstate proc_dbg_repo:file r_file_perms;
#Purpose: Allow dumpstate to read /proc/isp_p2/isp_p2_dump
allow dumpstate proc_isp_p2_dump:file r_file_perms;
#Purpose: Allow dumpstate to read /proc/isp_p2/isp_p2_kedump
allow dumpstate proc_isp_p2_kedump:file r_file_perms;
#Purpose: Allow dumpstate to read /proc/mali/memory_usage
allow dumpstate proc_memory_usage:file r_file_perms;
#Purpose: Allow dumpstate to read /proc/mtk_es_reg_dump
allow dumpstate proc_mtk_es_reg_dump:file r_file_perms;
#Purpose: Allow dumpstate to read /sys/power/mtkpasr/execstate
allow dumpstate sysfs_execstate:file r_file_perms;

View File

@ -71,6 +71,11 @@ type proc_kpageflags, fs_type, proc_type;
type proc_slabtrace, fs_type, proc_type; type proc_slabtrace, fs_type, proc_type;
type proc_cmdq_debug, fs_type, proc_type; type proc_cmdq_debug, fs_type, proc_type;
type proc_dbg_repo, fs_type, proc_type; type proc_dbg_repo, fs_type, proc_type;
type proc_isp_p2_dump, fs_type, proc_type;
type proc_isp_p2_kedump, fs_type, proc_type;
type proc_memory_usage, fs_type, proc_type;
type proc_mtk_es_reg_dump, fs_type, proc_type;
type sysfs_execstate, fs_type, sysfs_type;
type sysfs_therm, fs_type, sysfs_type; type sysfs_therm, fs_type, sysfs_type;
type sysfs_fps, fs_type, sysfs_type; type sysfs_fps, fs_type, sysfs_type;
type sysfs_ccci, fs_type, sysfs_type; type sysfs_ccci, fs_type, sysfs_type;

View File

@ -625,3 +625,10 @@
# Date: 2018/07/06 # Date: 2018/07/06
# Purpose for same-process HAL files and their dependencies: libGLES_mali.so need libm4u.so on mali GPU. # Purpose for same-process HAL files and their dependencies: libGLES_mali.so need libm4u.so on mali GPU.
/vendor/lib(64)?/libm4u\.so u:object_r:same_process_hal_file:s0 /vendor/lib(64)?/libm4u\.so u:object_r:same_process_hal_file:s0
# Purpose dump not exit file
/proc/isp_p2/isp_p2_dump u:object_r:proc_isp_p2_dump:s0
/proc/isp_p2/isp_p2_kedump u:object_r:proc_isp_p2_kedump:s0
/proc/mali/memory_usage u:object_r:proc_memory_usage:s0
/proc/mtk_es_reg_dump u:object_r:proc_mtk_es_reg_dump:s0
/sys/power/mtkpasr/execstate u:object_r:sysfs_execstate:s0