I have Ubuntu 16.04 and lately I reinstalled AppArmor:
sudo rm -rf /etc/apparmor* sudo apt-get install apparmor --reinstall sudo service apparmor restart
When I am trying to parse a profile with
apparmor_praser I got error:
AppArmor parser error for my.profile in my.profile at line 1: Could not open 'tunables/global'
I checked my ApprAmor folder and noticed it missing some files:
root@ubuntu:/etc/apparmor.d# ls ./tunables/ home.d multiarch.d xdg-user-dirs.d
While, before I removed the files I had these files:
root@ubuntu:~# ls /etc/apparmor.d/tunables/ alias apparmorfs dovecot global home home.d kernelvars multiarch multiarch.d proc securityfs sys xdg-user-dirs xdg-user-dirs.d
It seems that the installation didn't install all the dependencies libraries.
I tried also these ones:
apt-get install apparmor-utils apparmor-easyprof apparmor-easyprof-ubuntu
But I still don't have important files such as
Any idea how I can reinstall AppArmor as it came up with Ubuntu default installation ?