Here’s how you would disable SELinux permanently.
vi the “/etc/selinux/config” file.
Change the following line;
SELINUX=enforcing
to SELINUX=disabled
3. Save the file and reboot.
- To verify if SELinux is disabled, run “
dmesg | grep selinux
”. You should seeselinux=0
selinux_register_security:Â Registering secondary module capability
audit(1229470429.628:2): selinux=0 auid=4294967295 ses=4294967295
My /etc/selinux/config file.
`
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=enforcing SELINUX=disabled
SELINUXTYPE= type of policy in use. Possible values are:
#Â Â Â Â Â Â targeted - Only targeted network daemons are protected. #Â Â Â Â Â Â strict - Full SELinux protection. SELINUXTYPE=targeted`