Назад | Перейти на главную страницу

SELinux настроен на разрешающий, но отключен, как его включить?

Я хочу включить SELinux на своем VPS, но не могу этого сделать.

/ и т.д. / 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 - No SELinux policy is loaded.
SELINUX=permissive
# SELINUXTYPE= can take one of these two values:
# default - equivalent to the old strict and targeted policies
# mls     - Multi-Level Security (for military and educational use)
# src     - Custom policy built from source
SELINUXTYPE=default

# SETLOCALDEFS= Check local definition changes
SETLOCALDEFS=0

Как видите, я не устанавливал disabled в файле конфигурации. Но он отключен:

root@vpsxxxxx:/home/username# sestatus
SELinux status:                 disabled

Я перезапустил VPS из клиентского интерфейса веб-сайта провайдера, но он все еще отключен.

Какое программное обеспечение реализует ваш VPS? Может OpenVZ? OpenVZ несовместим с selinux https://wiki.centos.org/HowTos/Virtualization/OpenVZ