On a new trusty install:
$ sudo /etc/init.d/apparmor reload
* Reloading AppArmor profiles
Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Warning from stdin (line 1): /sbin/apparmor_parser: cannot use or update cache, disable, or force-complain via stdin
Add ing 'set -x' to /lib/apparmor/functions, we can see why:
On a new trusty install: d/apparmor reload d/disable: usr.bin.firefox d/disable: usr.sbin.rsyslogd parser: cannot use or update cache, disable, or force-complain via stdin
$ sudo /etc/init.
* Reloading AppArmor profiles
Skipping profile in /etc/apparmor.
Skipping profile in /etc/apparmor.
Warning from stdin (line 1): /sbin/apparmor_
Add ing 'set -x' to /lib/apparmor/ functions, we can see why:
+ [ ! -d /var/lib/ apparmor/ profiles ] apparmor/ profiles -type f --cache- loc=/etc/ apparmor. d/cache apparmor/ profiles = /var/lib/ apparmor/ profiles ] --cache- loc=/var/ cache/apparmor (new|old| dist|bak) |~)$ apparmor/ profiles parser --write-cache --replace --cache- loc=/var/ cache/apparmor -- parser: cannot use or update cache, disable, or force-complain via stdin
+ wc -l
+ find /var/lib/
+ num=2
+ [ 2 = 0 ]
+ cache_args=
+ [ /var/lib/
+ [ -d /var/cache/apparmor ]
+ cache_args=
+ getconf _NPROCESSORS_ONLN
+ + read profile
egrep+ -v (\.dpkg-
ls -1 /var/lib/
+ xargs -n1 -d\n -P1 /sbin/apparmor_
Warning from stdin (line 1): /sbin/apparmor_
We shouldn't process /var/lib/ apparmor/ profiles if it is empty.