apparmor should quietly return success in a container
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| apparmor (Ubuntu) |
Fix Released
|
High
|
Serge Hallyn | ||
| Precise |
Fix Released
|
High
|
Serge Hallyn | ||
| upstart (Ubuntu) |
Fix Released
|
High
|
Serge Hallyn | ||
| Precise |
Fix Released
|
High
|
Serge Hallyn | ||
Bug Description
In precise, containers are not allowed to load profiles. This will be allowed later, but for now apparmor should not prevent things from starting in a container because of failures to load or transition to profiles.
1. /etc/init.
2. /lib/init/
Since the container is already locked into a (customizable) container profile, this is ok.
(Note that admins can have containers running unconfined and with all
capabilities, but that is a special case.)
THis is needed for bug 978147.
Related branches
Ok, tested this and compared the output of 'aa-status' before and after a reboot. All the profiles are loaded on reboot with the new upstart. Verified that /lib/init/
I did not test this in containers, but Serge did before giving me the patch and the logic in the script is obvious.
Uploaded to unapproved.
This bug was fixed in the package upstart - 1.5-0ubuntu4
---------------
upstart (1.5-0ubuntu4) precise; urgency=low
* debian/
hopefully be removed after stacked profiles are supported and
used by lxc. (LP: #978297)
-- Serge Hallyn <email address hidden> 2012年4月10日 14:55:41 -0500
This bug was fixed in the package apparmor - 2.7.102-0ubuntu3
---------------
apparmor (2.7.102-0ubuntu3) precise; urgency=low
[ Jamie Strandboge ]
* debian/
to describe Ubuntu's two-stage policy load and how to add utilize it
when developing policy (LP: #974089)
[ Serge Hallyn ]
* debian/
removed once stacked profiles are supported and used by lxc.
(LP: #978297)
[ Steve Beattie ]
* debian/
for change_profile onexec (LP: #963756)
* debian/
debian/
to support the 'in' keyword for value lists, and make mount
operations aware of 'in' keyword so they can affect the flags build
list (LP: #959560)
* debian/
exec events in complain mode (LP: #872446)
* debian/
dovecot imap-login profile (LP: #978584)
* debian/
log parsing library from dropping apparmor network events that
contain ip addresses or ports in them (LP: #800826)
* debian/
syntax and usage in apparmor.d(5) manpage (LP: #979095)
* debian/
for profiles without attachment specification (LP: #963756,
LP: #978038)
* debian/
loading policy to kernels without compat patches (LP: #968956)
* debian/
grant access to /proc/attr api (LP: #979135)
-- Steve Beattie <email address hidden> 2012年4月12日 06:17:42 -0500