[Detail] 1. add some rules 2. transfer aee_core_forwarder domain form kerenl to aee_core_forwarder MTK-Commit-Id: 7ad2c5df75565153ccec471f0eb2224c912515cd Change-Id: I9b576e3937d04b5848baeb156718d0469fa05a75 CR-Id: ALPS03841705 Feature: Android Exception Engine(AEE)
50 lines
2.0 KiB
Plaintext
50 lines
2.0 KiB
Plaintext
# ==============================================
|
|
# MTK Policy Rule
|
|
# ==============================================
|
|
|
|
# Purpose: access for SYS_MEMORY_INFO
|
|
allow dumpstate fuse:dir { w_dir_perms };
|
|
allow dumpstate fuse:file { write create open setattr append };
|
|
|
|
# Purpose: mnt/user/*
|
|
allow dumpstate mnt_user_file:dir search;
|
|
allow dumpstate mnt_user_file:lnk_file read;
|
|
|
|
# Purpose: /storage/*
|
|
allow dumpstate storage_file:lnk_file read;
|
|
|
|
# Purpose: timer_intval. this is neverallow
|
|
#allow dumpstate sysfs:file r_file_perms;
|
|
allow dumpstate app_data_file:dir search;
|
|
allow dumpstate kmsg_device:chr_file r_file_perms;
|
|
|
|
# Purpose:
|
|
# 01-01 18:00:35.600 7723 7723 I ps : type=1400 audit(0.0:63712): avc:
|
|
# denied { ioctl } for path="/storage/emulated/0/mtklog/aee_exp/temp/db.PQtNt4/
|
|
# SYS_ALL_THREADS" dev="fuse" ino=209 ioctlcmd=5401 scontext=u:r:dumpstate:s0
|
|
# tcontext=u:object_r:fuse:s0 tclass=file permissive=1
|
|
allow dumpstate fuse:file ioctl;
|
|
|
|
# Purpose:
|
|
# 01-01 17:59:14.440 7664 7664 I aee_dumpstate: type=1400 audit(0.0:63497):
|
|
# 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 };
|
|
|
|
# Data : WK17.03
|
|
# Purpose: Allow to access gpu
|
|
allow dumpstate gpu_device:dir search;
|
|
|
|
# Date: 2017/07/11
|
|
# Purpose: 01-01 08:30:57.474 286 286 E SELinux : avc: denied { find } for interface=
|
|
# android.hardware.camera.provider::ICameraProvider pid=3133 scontext=u:r:dumpstate:s0 tcontext=
|
|
# u:object_r:hal_camera_hwservice:s0 tclass=hwservice_manager
|
|
allow dumpstate hal_camera_hwservice:hwservice_manager find;
|
|
|
|
#Purpose: Allow dumpstate to read/write /sys/kernel/debug/tracing/buffer_total_size_kb
|
|
userdebug_or_eng(`allow dumpstate debugfs_tracing_debug:file { r_file_perms write };')
|
|
|
|
# Purpose: Allow aee_dumpstate to write /sys/devices/virtual/timed_output/vibrator/enable
|
|
allow dumpstate sysfs_vibrator:file write;
|