- Ubuntu 18.04
sudo apt update
sudo systemctl stop apparmor
sudo apt purge apparmor
sudo apt update && sudo apt upgrade -yuf
sudo reboot
sudo apt install selinux selinux-utils selinux-basics auditd audispd-plugins
sudo sestatus
The status of SELinux should be disabled
at this step
sudo reboot
ssh username@ip_addr
sudo sestatus
The output should be similar to the follow figure
sudo setenforce 1
After enforcing SELinux, sudo sestatus
will output which is the similar to the following figure