I'm trying to set SELinux to enforcing on Ubuntu 20.04, and the steps I did are as follow:
- Install SELinux =
sudo apt-get install policycoreutils selinux-utils selinux-basics -y
- Activate SELinux =
sudo selinux-activate
- Edit /etc/selinux/config and set SELinux to enforcing mode:
sudo selinux-config-enforcing
- Reboot:
sudo reboot
However, upon reboot, the system doesn't seem to boot. Any reasons why? If I removed step 3, the system will boot, but SELinux will be permissive instead of enforcing. Also, I want a permanent change, so setenforce 1
isn't going to cut it.