./avcTest.txt(2)将保存相关的log的文件复制到ubuntu里面,使用命令:#audit2allow -i avcTest.txt-o avc.te3.打开生成的avc.te文件,根据._audit2allo">
当前位置:   article > 正文

工具audit2allow自动生成Selinux策略语句

audit2allow

1.audit2allow的安装:
#sudo apt install policycoreutils

2.audit2allow的用法
(1)抓取和权限相关的log指令,并重定向保存至文件(假如是:avcTest.txt):

#adb logcat -b all | grep "avc" > ./avcTest.txt

(2)将保存相关的log的文件复制到ubuntu里面,使用命令:

#audit2allow -i avcTest.txt -o avc.te

3.打开生成的avc.te文件,根据路径将对应的代码段加到对应的位置即可。

本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
  

闽ICP备14008679号