On Ubuntu 16.04, how do I enable AppArmor or SELinux? It's not in the Ubuntu App Store it won't even work in Terminal. How do I enable one of them?
AppArmor support was first introduced in Ubuntu 7.04, and is turned on by default in Ubuntu 7.10 and later.
sudo /etc/init.d/apparmor stop
sudo apt purge apparmor
sudo apt remove apparmor
sudo apt update && upgrade -yuf
sudo reboot
sudo apt install selinux
sudo reboot
pchf@ubuntu:~# sudo setenforce 1
pchf@ubuntu:~# sudo getenforce
Enforcing
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=enforcing
We use essential cookies to make this site work, and optional cookies to enhance your experience.