To start I'm a complete noobie in the matter of SElinux and ubuntu, so my problem is that I tried installing it on ubuntu server 18.04 using this tutorial: https://www.linode.com/docs/quick-answers/linux/install-selinux-on-ubuntu/
But I cannot enable it either using setenforce or changing config file in selinux.
root@test:/# setenforce 1
setenforce: SELinux is disabled
If you need more info, I will gladly provide them.
Thank you in advance.
Just arrived here from a Google search.
Do NOT use SELinux with Ubuntu. It is not tested at all. After enabling SELinux, many package installations fail. In particular, anyone that runs "groupadd" to add a group specific to a service. See https://bugs.launchpad.net/ubuntu/+source/libselinux/+bug/1769301
SELinux is tested and enabled by default with CentOS and Redhat Enterprise Linux. Ubuntu offers AppArmor as alternative security mechanism. If you prefer SELinux, use a distribution that enables it by default, like Redhat or CentOS.