Public bug reported:

The dh_apparmor call in debian/rules isn't called using "-p <binary
package>" and so adds apparmor entries to the postinst/postrm of all the
binary packages, not just the one containing the profiles.

This is clearly wrong and at the very least confusing (if not a source
of bugs).

[rational]
The apparmor postinst/postrm code should only be added to the package 
containing the profiles and not to lxc-dev.
The fix is trivial and can potentially fix bugs.

[test case]
1) apt-get install lxc-dev
2) grep apparmor /var/lib/dpkg/info/lxc-dev*

2) shouldn't return anything as lxc-dev doesn't have anything to do with
apparmor

[regression potential]
The change has been tested on quantal and precise, the apparmor maintainer 
script entries are indeed limited to just the lxc binary package after that 
change. Should everything go wrong, the worst that can happen is a missing 
apparmor maintainer script entry in lxc which will prevent a reload of the 
profile at upgrade time, though the profile will still be applied at boot time.

** Affects: lxc (Ubuntu)
     Importance: Undecided
         Status: Fix Released

** Affects: lxc (Ubuntu Precise)
     Importance: Low
     Assignee: Stéphane Graber (stgraber)
         Status: In Progress

** Affects: lxc (Ubuntu Quantal)
     Importance: Undecided
         Status: Fix Released

** Also affects: lxc (Ubuntu Precise)
   Importance: Undecided
       Status: New

** Also affects: lxc (Ubuntu Quantal)
   Importance: Undecided
       Status: New

** Changed in: lxc (Ubuntu Quantal)
       Status: New => Fix Released

** Changed in: lxc (Ubuntu Precise)
       Status: New => In Progress

** Changed in: lxc (Ubuntu Precise)
   Importance: Undecided => Low

** Changed in: lxc (Ubuntu Precise)
     Assignee: (unassigned) => Stéphane Graber (stgraber)

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

Title:
  dh_apparmor runs against all binary packages, adding useless entries
  to lxc-dev's postinst/postrm

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1021428/+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