Ubuntu - SELinux - Understanding SELinux Configuration

The SELinux configuration file is /etc/selinux/config file.

The following are the possible values for the SELINUX variable in the /etc/selinux/config file:

The following are the possible values for SELINUXTYPE variable in the /etc/selinux/config file. This indicates the type of policies that can be used for the SELinux.

SELinux is also often configured in the Grub boot loader. Search /boot/grub/grub.conf file using grep for the words selinux or enforcing:

egrep -i 'selinux=0|enforcing=0' /boot/grub/grub.conf

If you found lines with selinux=0 or enforcing=0, remove them and save the changes.


Reboot the server:

reboot