2

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.

5

1 Answer 1

3

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.

1
  • Thanks for your response ! I resoled my problem by installing CentOS after researching and finding that Ubuntu and SElinux aren't compatible at all. Marked as ANSWER for other people with this kind of questions or ideas to see your info, Have a great day !
    – Adrian S
    Mar 22, 2019 at 8:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .