[root@localhost ~]# getenforce
#查詢SELinux的運行模式
Enforcing
#當前的SELinux是強制模式
[root@localhost ~]# sestatus
SELinux status:              enabled
SELinuxfs mount:             /selinux
Current mode:                enforcing
Mode from config file:       enforcing
Policy version:              24
Policy from config file:     targeted
[root@localhost ~]# setenforce 選項
選項:[root@localhost ~]# setenforce 0
#切換成寬容模式
[root@localhost ~]# getenforce
Permissive
[root@localhost ~]# setenforce 1
#切換成強制模式
[root@localhost ~]# getenforce
Enforcing
新聞熱點
疑難解答