From cbb2ca1665e1d812e7ee7992a2376c016d144516 Mon Sep 17 00:00:00 2001 From: Huaiming Li Date: Sat, 18 Jan 2020 10:16:04 +0800 Subject: [PATCH] [ALPS04642542] add allow rule for reading tracing_on ensure aee_dumpstate can read tracing_on value MTK-Commit-Id: a97d988f87616ea966acdfc090f665237098fb22 Change-Id: I04b844de30965f943b7d3d2be1c805c3158dbf13 CR-Id: ALPS04642542 Feature: Android Exception Engine(AEE) --- non_plat/dumpstate.te | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/non_plat/dumpstate.te b/non_plat/dumpstate.te index cc581d4..94a9475 100644 --- a/non_plat/dumpstate.te +++ b/non_plat/dumpstate.te @@ -81,7 +81,7 @@ allow dumpstate sf_bqdump_data_file:file r_file_perms; # avc: denied { open } for path="/sys/kernel/debug/tracing/tracing_on" dev= # "debugfs" ino=2087 scontext=u:r:dumpstate:s0 tcontext=u:object_r: # tracing_shell_writable:s0 tclass=file permissive=1 -allow dumpstate debugfs_tracing:file { write read open }; +allow dumpstate debugfs_tracing:file rw_file_perms; # Data : WK17.03 # Purpose: Allow to access gpu