diff --git a/non_plat/aee_aedv.te b/non_plat/aee_aedv.te index 6c0b089..cd1ffff 100644 --- a/non_plat/aee_aedv.te +++ b/non_plat/aee_aedv.te @@ -388,9 +388,9 @@ allow aee_aedv sysfs_vcore_debug:file r_file_perms; allow aee_aedv sysfs_boot_mode:file r_file_perms; #Purpose: Allow aee_aedv to read/write /sys/kernel/debug/tracing/buffer_total_size_kb -#userdebug_or_eng(` -# allow aee_aedv debugfs_tracing_debug:file { r_file_perms write }; -#') +userdebug_or_eng(` +allow aee_aedv debugfs_tracing_debug:file { rw_file_perms }; +') #Purpose: Allow aee_aedv to read /sys/mtk_memcfg/slabtrace allow aee_aedv proc_slabtrace:file r_file_perms; diff --git a/non_plat/dumpstate.te b/non_plat/dumpstate.te index 38e7fc3..8f8ffb5 100644 --- a/non_plat/dumpstate.te +++ b/non_plat/dumpstate.te @@ -131,3 +131,18 @@ allow dumpstate proc_cmdq_debug:file r_file_perms; #Purpose: Allow dumpstate to read /proc/cpuhvfs/dbg_repo 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; diff --git a/non_plat/file.te b/non_plat/file.te index 94d67d9..043cb09 100644 --- a/non_plat/file.te +++ b/non_plat/file.te @@ -71,6 +71,11 @@ type proc_kpageflags, fs_type, proc_type; type proc_slabtrace, fs_type, proc_type; type proc_cmdq_debug, 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_fps, fs_type, sysfs_type; type sysfs_ccci, fs_type, sysfs_type; diff --git a/non_plat/file_contexts b/non_plat/file_contexts index 3004e23..ee4dcb3 100644 --- a/non_plat/file_contexts +++ b/non_plat/file_contexts @@ -628,3 +628,10 @@ # Date: 2018/07/06 # 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 + +# 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