SELinux linux işletim sistemlerinde security enhanced anlamında kurulum ile gelen bir güvenlik mekanizmasıdır, normal ayarlarda çoğu uygulamanın internet ile olan bağlantısında sorunlar çikarabilir bu yüzden kapatmayı tercih edebiliriz.
Kapatma işlemi için uygulayacağımız komut aşağıdaki gibidir,
nano /etc/selinux/config “yazarak config dosyasının içine giriyoruz”
karşımıza gelen config dosyası ağaşıdaki sekildedir,
SELINUX=enforcing yazan satırı editliyoruz,
# 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 – Targeted processes are protected,
# mls – Multi Level Security protection.
SELINUXTYPE=targeted
————————————————————-
# 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=disabled
# SELINUXTYPE= can take one of these two values:
# targeted – Targeted processes are protected,
# mls – Multi Level Security protection.
SELINUXTYPE=targeted
Disabled olarak editleyerek kaydedip çıkıyoruz,
SELinux güvenlik mekanizmasını kapatmış oluyoruz.
centos, linux, SElinux