From 28cf5af63aa795515d2e58137b3431e21a9bce6e Mon Sep 17 00:00:00 2001 From: Dennis YC Hsieh Date: Sat, 18 Jan 2020 10:06:20 +0800 Subject: [PATCH] [ALPS04023420] cmdq: CMDQ_STATUS not gen in db Miss rule in aee_aedv.te and cause cmdq status blocking by rule. Add rule and fix name typo. MTK-Commit-Id: 589feaa73ff62b1893f30d5e4b1ce02d34c94edf Change-Id: I046f73e29f404cb51908f8191599cb46a7c1399d Signed-off-by: Dennis YC Hsieh CR-Id: ALPS04023420 Feature: Android Exception Engine(AEE) --- non_plat/aee_aedv.te | 3 +++ non_plat/dumpstate.te | 4 ++-- non_plat/file.te | 2 +- non_plat/genfs_contexts | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/non_plat/aee_aedv.te b/non_plat/aee_aedv.te index c7a9982..96fa466 100644 --- a/non_plat/aee_aedv.te +++ b/non_plat/aee_aedv.te @@ -397,6 +397,9 @@ userdebug_or_eng(`allow aee_aedv self:capability { sys_ptrace dac_read_search da #Purpose: Allow aee_aedv to read /sys/mtk_memcfg/slabtrace allow aee_aedv proc_slabtrace:file r_file_perms; +#Purpose: Allow aee_aedv to read /proc/mtk_cmdq_debug/status +allow aee_aedv proc_cmdq_debug:file r_file_perms; + # temp solution get_prop(aee_aedv, vendor_default_prop) diff --git a/non_plat/dumpstate.te b/non_plat/dumpstate.te index 886a947..c1cb3ff 100644 --- a/non_plat/dumpstate.te +++ b/non_plat/dumpstate.te @@ -126,5 +126,5 @@ allow dumpstate sf_rtt_file:file r_file_perms; #Purpose: Allow dumpstate to read/write /sys/mtk_memcfg/slabtrace allow dumpstate proc_slabtrace:file r_file_perms; -#Purpose: Allow dumpstate to read/write /sys/mtk_cmdq_debug/status -allow dumpstate proc_cmqd_debug:file r_file_perms; +#Purpose: Allow dumpstate to read /proc/mtk_cmdq_debug/status +allow dumpstate proc_cmdq_debug:file r_file_perms; diff --git a/non_plat/file.te b/non_plat/file.te index 30215b4..e5dab71 100644 --- a/non_plat/file.te +++ b/non_plat/file.te @@ -69,7 +69,7 @@ type proc_msdc_debug, fs_type, proc_type; type proc_pidmap, fs_type, proc_type; type proc_kpageflags, fs_type, proc_type; type proc_slabtrace, fs_type, proc_type; -type proc_cmqd_debug, fs_type, proc_type; +type proc_cmdq_debug, fs_type, proc_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/genfs_contexts b/non_plat/genfs_contexts index 746967f..d1b67db 100644 --- a/non_plat/genfs_contexts +++ b/non_plat/genfs_contexts @@ -34,7 +34,7 @@ genfscon proc /msdc_debug u:object_r:proc_msdc_debug:s0 genfscon proc /pidmap u:object_r:proc_pidmap:s0 genfscon proc /kpageflags u:object_r:proc_kpageflags:s0 genfscon proc /mtk_memcfg/slabtrace u:object_r:proc_slabtrace:s0 -genfscon proc /mtk_cmdq_debug/status u:object_r:proc_cmqd_debug:s0 +genfscon proc /mtk_cmdq_debug/status u:object_r:proc_cmdq_debug:s0 genfscon iso9660 / u:object_r:iso9660:s0