SElinux 配置文件丢失

SElinux 配置文件丢失

尝试设置邮件时,我发现我丢失了重要文件,或者看起来确实如此。

首先,我没有selinux,/etc/sysconfig并且/etc/selinux有文件夹mls和文件 restorecond.conf restorecond_user.conf semanage.conf,但没有通用conf文件。

根据命令sestatus,它显示已禁用。

根据命令yum provides /etc/selinux/config

Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* epel: mirror.optus.net
selinux-policy-3.7.19-231.el6_5.1.noarch : SELinux policy configuration
Repo        : updates
Matched from:
Filename    : /etc/selinux/config



selinux-policy-3.7.19-231.el6.noarch : SELinux policy configuration
Repo        : base
Matched from:
Filename    : /etc/selinux/config



selinux-policy-3.7.19-231.el6_5.3.noarch : SELinux policy configuration
Repo        : updates
Matched from:
Filename    : /etc/selinux/config

重新启动时,在重新启动之前执行命令后,它仍保持禁用状态echo 1 > /selinux/enforce

我使用的是centos 6.5,不知道如何检查SElinux是否损坏。

我认为它不完整存在:

-bash-4.1#  rpm -qa | grep selinux
libselinux-python-2.0.94-5.3.el6_4.1.i686
libselinux-utils-2.0.94-5.3.el6_4.1.i686
libselinux-2.0.94-5.3.el6_4.1.i686
-bash-4.1# rpm -q policycoreutils
policycoreutils-2.0.83-19.39.el6.i686
-bash-4.1# rpm -qa | grep setroubleshoot
-bash-4.1# semanage login -l 
-bash: semanage: command not found

CONFIG_SECURITY_SELINUX=y
CONFIG_SECURITY_SELINUX_BOOTPARAM=y
CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=1
CONFIG_SECURITY_SELINUX_DISABLE=y
CONFIG_SECURITY_SELINUX_DEVELOP=y
CONFIG_SECURITY_SELINUX_AVC_STATS=y
CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
# CONFIG_SECURITY_SELINUX_POLICYDB_VERSION_MAX is not set

相关内容