我刚刚检查了一下我的服务器上是否像这样启用了SELINUX
[root@fedora ~]# getenforce
Disabled但是,当我查看/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=enforcing
# SELINUXTYPE= can take one of these three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are pr$
# mls - Multi Level Security protection.
SELINUXTYPE=targeted如何使SELINUX实际设置为强制执行?最好不重新启动服务器。
当我运行[root@fedora ~]# setenforce 1时,我会收到以下消息
setenforce: SELinux is disabled而SELINUX仍然是禁用的。
发布于 2016-08-16 22:42:13
在与Linode人员检查之后,似乎默认情况下安装在Linodes上的Fedora 24版本有一个不支持SELinux的自定义内核,这就是它不能工作的原因。所以唯一的解决办法是重新形象整个事情,这是有点激烈,所以我要做的是没有它。
发布于 2016-08-16 21:57:48
要在不重新启动的情况下启用SELinux,请使用setenforce 1。请注意,如果SELinux已经禁用了一段时间,您将需要使用不带或带有不正确标签的restorecon文件。
https://unix.stackexchange.com/questions/303834
复制相似问题