コンテンツにスキップ

Linux標準@セキュリティ系ミドルウェア

はじめに

本サイトにつきまして、以下をご認識のほど宜しくお願いいたします。


01. SELinux:Security Enhanced Linux

SELinuxとは

Linuxにデフォルトで導入されているミドルウェアで、セキュリティを制御する。


設定

▼ SELinuxの無効化

アプリケーションと他のソフトウェアの通信を遮断してしまうことがあるため、基本的には無効にしておく。

(1)

SELinuxの状態を確認

$ getenforce

# 有効の場合
Enforcing
(2)

/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.

# disabledに変更する。
SELINUX=disabled

# SELINUXTYPE= can take one of these three values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted
(3)

OSを再起動

OSを再起動しないと設定が反映されない。