2017年1月5日木曜日

Zabbix SElinux設定



1) vi /etc/selinux/config
permissiveモードにして再起動し、selinux通知ブラウザに指示に従い、コマンドを投入。
/var/log/audit/audit.logにエラーが無い事を確認の上、enforcingモードに移行する。

※permissiveモード:ポリシーの検証は行うが、拒否はしない。

# 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
#SELINUX=disabled
SELINUX=permissive
# SELINUXTYPE= can take one of three two values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

0 件のコメント:

コメントを投稿

海外アクセスを遮断

vi /root/script/update_geoip.sh <<__EOF__ #!/bin/bash # 日本のIPアドレス(IPv4 / IPv6両対応)をインポートするスクリプト # 一時ファイルの準備 IP_FILE_V4="/tmp/jp_ip...