Это, скорее – анти-security.
Настройки SELinux для CentOS находятся в файле /etc/sysconfig/selinux:
# cat /etc/sysconfig/selinux # 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=enforcing # SELINUXTYPE= type of policy in use. Possible values are: # targeted - Only targeted network daemons are protected. # strict - Full SELinux protection. SELINUXTYPE=targeted
По-умолчанию он включен. Что бы отключить его – редактируем файл, и в строке:
SELINUX=enforcing
меняем значение на disabled
. После чего – перезагружаем систему, что бы изменения вступили в силу:
# shutdown -r now
Broadcast message from [email protected] (/dev/pts/2) at 4:50 ... The system is going down for reboot NOW!
После перезагрузки – проверим состояние:
# sestatus -v SELinux status: disabled