檢視selinux的狀態以及關閉selinux

msdnchina發表於2011-09-02
檢視selinux的狀態:

[root@rac1 ~]# getenforce
Disabled
[root@rac1 ~]# sestatus
SELinux status: disabled
[root@rac1 ~]#


修改selinux為disabled(禁用),重啟後此修改生效
[root@rac1 ~]# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/161195/viewspace-1054701/,如需轉載,請註明出處,否則將追究法律責任。

相關文章