I installed SELINUX on ubuntu using the command:
sudo apt-get install selinux
config file in /etc/selinux
contain following information
SELINUX=permissive
SELINUXTYPE=default
SETLOCALDEFS=0
But i am not able to set selinux, when I check using sestatus -v command
it gives output
SELINUX is disabled
How should I enable my SELINUX?
When I use command seinfo
. it gives following output
ERROR: policydb version 26 does not match my version range 15-24
ERROR: Unable to open policy /etc/selinux/default/policy/policy.26.
ERROR: Input/output error
check-selinux-installation command gives following output
../proc/1 kernel..
SELinux is not enabled. The init process (PID 1) is running in an incorrect domain. /etc/pam.d/login is not SELinux enabled
FSCKFIX is not enabled – not serious, but could prevent system from booting…
udev will create nodes not labeled correctly
Please help
Best Answer
This error might be because you are running AppArmor along with SELinux. AppArmor is installed by default in Ubuntu. You can't use 2 LSM (Linux security modules) at the same time. You need to remove AppArmor if you wish yo use SELinux
See an aswer here: Is it a bad idea to run SELinux and AppArmor at the same time?