SElinux 構成ファイルがありません。

SElinux 構成ファイルがありません。

メールの設定中に重要なファイルを紛失したことがわかりました。

まず、私はselinuxを持っておらず、フォルダとファイルは /etc/sysconfigありますが、共通のconfファイルはありません。/etc/selinuxmlsrestorecond.conf restorecond_user.conf semanage.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

ベストアンサー1

おすすめ記事