autostart containers must be started after apparmor profiles are loaded
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
High
|
Serge Hallyn | ||
Precise |
Fix Released
|
Undecided
|
Unassigned | ||
Quantal |
Fix Released
|
High
|
Serge Hallyn |
Bug Description
lxc.conf currently does the container autostarts before it loads the apparmor profiles. That is wrong. Those must be reversed.
=======
SRU Justification
1. Impact: auto-start containers could be started without apparmor enforcement
2. Development fix: start auto-start containers after apparmor policy loads
3. Stable fix: same as development fix
4. Test case:
unload apparmor profiles (sudo /etc/init.
5. Regression potential: none.
=======
Changed in lxc (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in lxc (Ubuntu Quantal): | |
assignee: | nobody → Serge Hallyn (serge-hallyn) |
tags: | added: needssru |
description: | updated |
description: | updated |
tags: | removed: needssru |
This bug was fixed in the package lxc - 0.8.0~rc1-4ubuntu5
--------------- rc1-4ubuntu5) quantal; urgency=low
lxc (0.8.0~
* 0082-umount- old-proc: fix proc auto-mount. If /proc is already mounted, execute- find-init to look for lxc-init in lxc/lxc- init
make sure that /proc/self points to 1, since we are container init.
Otherwise, assume proc is an old one, and umount it and remount our own.
If we keep the old proc mounted, apparmor transitions will by tried for
wrong task and fail. Also move check for whether apparmor is enabled so
that it is called by lxc-execute. (LP: #993706)
* update 0074-lxc-
LXCINITDIR/
* debian/control: add cloud-utils to lxc Recommends, as lxc-ubuntu-cloud
needs it. (LP: 995361)
* debian/lxc.upstart: load apparmor profiles before auto-starting containers.
(LP: #989853)
* pop 06-bash.patch and 0075-lxc-ls-bash. lxc-clone also has bashims, just
stick to using bash until upstream is also converted (so we are safe
against patches).
-- Serge Hallyn <email address hidden> Mon, 07 May 2012 21:22:26 +0000