Security-Enhanced Linux (SELinux) is a mandatory access control (MAC) security mechanism implemented in the Linux kernel. This mechanism adds an extra layer of access security to your files,directories,devices, ports and even processes.
I strongly recommend that you implement SELinux in your environment. But, in some cases, you may want to disable it to avoid some unnecessary issues.
To disable SELinux in CentOS boxes on the fly, simply type the following command as root:
To disable it permanently and remain in effect even after reboots, simply edit the file “/etc/selinux/config” and change the following