]> git.ipfire.org Git - thirdparty/lxc.git/commit
apparmor: don't fail if current aa label is given 808/head
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 8 Feb 2016 07:06:10 +0000 (23:06 -0800)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 8 Feb 2016 20:44:11 +0000 (12:44 -0800)
commit374625aa3fe8cfa9c866c6d5e6f28bbb4a7a7540
treeb57259b7551eb7ff48313d17d7ecc9d5b4df859c
parente8f8436cc123707d49a8477702c9f58300e6ac02
apparmor: don't fail if current aa label is given

Ideally a container configuration will specify 'unchanged' if
it wants the container to use the current (parent) profile.  But
lxd passes its current label.  Support that too.

Note that if/when stackable profiles exist, this behavior may
or may not be what we want.  But the code to deal with aa
stacking will need some changes anyway so this is ok.

With this patch, I can create nested containers inside a
lxd xenial container both using

lxc launch x2

and unprivileged

lxc-start -n x2

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lsm/apparmor.c