FYI, the hash approach is slow for the normal case since we always have
to perform an sum. Furthermore it doesn't take into account #include'd
files that might also change (eg, apparmor is updated and has a
different base abstraction). For the workaround, I guess it is ok since
the slowdown will only be for a couple of profiles but I would have
rather seen us unconditionally invalidating the cache when switching
from a to b or vice versa.

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

Title:
  apparmor cache not updated when apparmor.d rules change (breaks
  15.04/stable -> 15.04/edge updates)

To manage notifications about this bug go to:
https://bugs.launchpad.net/snappy/+bug/1460152/+subscriptions

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

Reply via email to