lxc-start is unconfined but has a profile defined
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
lxc-android-config (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
On today's ubuntu-system image (grouper) I noticed that lxc-start has a profile defined, but the process is not confined. Eg:
$ sudo aa-status
apparmor module is loaded.
20 profiles are loaded.
20 profiles are in enforce mode.
...
/usr/
...
lxc-
lxc-
...
0 profiles are in complain mode.
4 processes have profiles defined.
3 processes are in enforce mode.
/sbin/dhclient (1316)
/usr/
/usr/
0 processes are in complain mode.
1 processes are unconfined but have a profile defined.
/usr/
$
I don't think this is a new bug-- seems like I've noticed it before.
Changed in lxc (Ubuntu): | |
importance: | Undecided → High |
Thanks for reporting this bug. I can't reproduce this on a
stock saucy system. How and when was that container created
and started? Was it auto-started (since it's pid 471)? If
you stop and restart the container, does that continue to be
the case? Is it possible you had done unloaded all profiles
and restarted apparmor while the container was running?
Lxc doesn't do anything in particular to enter the lxc-start
profile, it just gets entered into it by the pathname. Apart
from explicitly entering the unconfined domain (which is only
done by the init process, if you have
lxc.aa_profile = unconfined
inthe container configuration file, right before executing
/sbin/init) So I'm not sure what lxc could have done to get
into this state, but I sure hope we can get to the bottom of it.
priority: high
status: incomplete