Background
AppArmor is a Linux Security Module implementation of name-based access controls.
Check status of apparmor
service
1
sudo apparmor_status
It will list all the processes and profiles that are enabled with apparmor
.
Disable apparmor
service completely
Stop & disable apparmor
using the following commands and reboot the system:
1
2
3
sudo systemctl stop apparmor
sudo systemctl disable apparmor
reboot
Addtional tips
Disable apparmor
for specific process or profile
Find the specific profile and process and disable it by using following commands:
1
2
3
4
5
6
7
8
9
10
11
# List the profiles
ls /etc/apparmor.d/
# To disable specific profile
# Replace profile.name in the command with actual profile
sudo ln -s /etc/apparmor.d/profile.name /etc/apparmor.d/disable/
sudo apparmor_parser -R /etc/apparmor.d/profile.name
# Example for disabling ping profile
sudo ln -s /etc/apparmor.d/bin.ping /etc/apparmor.d/disable/
sudo apparmor_parser -R /etc/apparmor.d/bin.ping
Completely uinstall apparmor
!! Dangerous !!
To completely uninstall apparmor
use the following command:
1
sudo apt-get purge apparmor