** Description changed:

- On a new trusty install:
+ On a new trusty install with click-apparmor installed:
  $ 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:
  
  + [ ! -d /var/lib/apparmor/profiles ]
  + wc -l
  + find /var/lib/apparmor/profiles -type f
  + num=2
  + [ 2 = 0 ]
  + cache_args=--cache-loc=/etc/apparmor.d/cache
  + [ /var/lib/apparmor/profiles = /var/lib/apparmor/profiles ]
  + [ -d /var/cache/apparmor ]
  + cache_args=--cache-loc=/var/cache/apparmor
  + getconf _NPROCESSORS_ONLN
  + + read profile
  egrep+  -v (\.dpkg-(new|old|dist|bak)|~)$
  ls -1 /var/lib/apparmor/profiles
  + xargs -n1 -d\n -P1 /sbin/apparmor_parser --write-cache --replace 
--cache-loc=/var/cache/apparmor --
  Warning from stdin (line 1): /sbin/apparmor_parser: cannot use or update 
cache, disable, or force-complain via stdin
  
  The two files that are there are:
  $ ls -a /var/lib/apparmor/profiles/.a*
  /var/lib/apparmor/profiles/.apparmor-easyprof-ubuntu.md5sums
  /var/lib/apparmor/profiles/.apparmor.md5sums
  
  but these are state files, not profiles. Ideally they wouldn't exist and this 
will go away when we revamp policy load, but we should probably do this:
  num=`find "$pdir" -type f ! -regex '.*\.md5sums$' | wc -l`
  
  instead of:
  num=`find "$pdir" -type f | wc -l`

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1295816

Title:
  /etc/init.d/apparmor reload complains if /var/lib/apparmor/profiles
  doesn't have profiles

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1295816/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to