SELinux, an abbreviation of security-enhanced Linux, are a Security enhancement to the Linux operating system. It is a labeling system, blocks many system functions in its default configuration.
SELinux are very useful for some users, but due to their administrative overhead, you could be better off simply disabling it. The time spent adding rules and updating permissions on SELinux versus the added security benefit could not be worth it.
First check if SELinux is disabled or enabled:
sestatus
If This command returns "SELinux status:enabled", you can disable SELinux with the following command.
setenforce 0
The command above would only disable SELinux for now and the change would be reverted across reboots. Therefore, disable it permanently by opening the file and /etc/sysconfig/selinux
replace the current SELINUX
directive with a value disabled
of So it looks like this:
vim /etc/sysconfig/selinux
SELINUX=disabled
Check the SELinux status again to make sure, it has been properly disabled.
sestatus
CentOS7 Close SELinux