1.标志性log 格式shell
avc: denied { 操做权限 } for pid=7201 comm=“进程名” scontext=u:r:源类型:s0 tcontext=u:r:目标类型:s0 tclass=访问类型 permissive=0app
在相应源类型.te文件,添加以下格式的一行语句:(结尾别忘了分号)进程
格式:allow 源类型 目标类型:访问类型 {操做权限};get
Kernel Logclass
avc: denied {getattr read} for pid=7201 comm="xxx.xxx" scontext=u:r:system_app:s0 tcontext=u:r:shell_data_file:s0 tclass=dir permissive=0file
修改方案权限
在system_app.te文件中,添加下面语句:di
# allow system_app shell_data_file:dir {getattr read};文件