小编art*_*urh的帖子

CentOS 上的 SELinux 不起作用

我是 CentOS 的新手,并试图启用 SELinux,但在重新启动后无法正常工作,如https://www.digitalocean.com/community/tutorials/an-introduction-to-selinux-on-centos-7-part 所述-1-基本概念

每次重新启动后我收到的唯一错误消息是:

master:~# cat /var/log/messages | grep "SELinux"
Jul 14 22:11:48 master kernel: SELinux:  Disabled at boot.
Run Code Online (Sandbox Code Playgroud)

据谷歌告诉我,这意味着我的配置文件有 SELINUX=0 / SELINUX=disabled。但我的配置文件应该是正确的:

master:~# 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 - No SELinux policy is loaded.
SELINUX=permissive
# SELINUXTYPE= can take …
Run Code Online (Sandbox Code Playgroud)

selinux centos centos7

2
推荐指数
1
解决办法
2418
查看次数

标签 统计

centos ×1

centos7 ×1

selinux ×1