If you really need to disable SELinux on your system please consider the following:
# vi /etc/selinux/config
Change SELINUX=enforcing
1
2
3
4
5
6
7
8
9
10
|
# 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
|
to SELINUX=disabled
1
2
3
4
5
6
7
8
9
10
|
# 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 - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
|
This will disable SELinux on your next reboot.
To diable SELinux, without having to reboot, you can use the setenforce command like so:
# setenforce 0
This will revert to enforcing once you reboot