]> git.ipfire.org Git - thirdparty/lxc.git/commit
apparmor: check for mount feature at a better time
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 13 Oct 2014 23:14:30 +0000 (23:14 +0000)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 20 Oct 2014 21:34:45 +0000 (16:34 -0500)
commit7196c7b37c4dec6fc206fe4240eca8ef63119e42
tree644c8f3d78ec1918a29d19560699b45e3d7b4226
parentcc4ae28dd6f9e4d2f95f0aba5248f15e791430c4
apparmor: check for mount feature at a better time

Check for it when we check for apparmor being enabled, rather
than doing it during the middle of a container setup.

This avoid the need to try mounting /sys and /sys/kernel/security
in the middle of startup, which we may not be allowed to anyway.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Dwight Engen <dwight.engen@oracle.com>
src/lxc/lsm/apparmor.c