Linux基础备忘_11:Selinux的base mode与mls mode切换

来源:互联网 发布:苹果手机备份软件 编辑:程序博客网 时间:2024/05/16 11:23

base(targeted) mode与mls mode切换,以base to mls为例:

1)临时关掉selinux: setenforce 0

2)修改selinux config成mls和permissive

3)fixfiles -F onboot,重启

4)在系统message中grep -i 类似"SELinux is preventing"之类的关键字,(只在图形模式下base到mls,关于colord时候遇到过)

5)如果有,需要audit2allow修复,如果无,修改selinux config成enforce,重启

原创粉丝点击