CPanel/WHM//CentOS//SELinux

CPanel/WHM//CentOS//SELinux

ファイル構成は、SELinux モードが「ターゲット」であることを示します。有効になっていますか、それとも無効になっていますか?

ターミナル/ SSHに「無効」と表示されます。しかし、あちこちでいくつかの機能が有効になっているように動作します。

ありがとうございます。

ベストアンサー1

明らかに有効ですが、ターゲットネットワークサービスのみを保護します。

設定ファイルから/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 two values:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted

入力することもでき、getenforceSELinuxを有効または無効にするかどうかを表示します。

おすすめ記事