I have verified that Clint's changes work-- eg I adjusted 
/var/lib/dpkg/info/tcpdump.postrm to have (ie, what dh_apparmor would add when 
tcpdump is built with new apparmor):
if [ "$1" = "purge" ] && ! [ -e "/etc/apparmor.d/usr.sbin.tcpdump" ]; then

and then I did:
$ sudo apt-get remove tcpdump # /etc/apparmor.d/local/usr.sbin.tcpdump still 
exists
$ sudo apt-get remove --purge tcpdump # /etc/apparmor.d/local/usr.sbin.tcpdump 
no longer exists

I will commit this to our bzr branch. Thanks Clint! :)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-5.1 in Ubuntu.
https://bugs.launchpad.net/bugs/986892

Title:
  mysql-server postrm breaks apparmor profile for later versions on
  purge

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to