Kuinka poistaa SELinux käytöstä Centos 7: ssä pysyvästi

Ensinnäkin, tarkista SELinuxin nykyinen tila:



SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   enforcing
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      31

Muokkaa nyt selinux-asetustiedostoa:

vi /etc/selinux/config

Aseta SELINUX = pois käytöstä. Tulos:

#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.
# SELINUXTYPE= can take one of three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
Related:  Kuinka asentaa Python 3.6 Centos 7: een helposti