]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Don't mount selinux fs in LXC if selinux is disabled
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 15 May 2013 15:26:59 +0000 (16:26 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 16 May 2013 15:28:53 +0000 (16:28 +0100)
commit95c6cc344bec8405636d2a59fc0c34e0581001ab
tree42a9a9b630217cdea33ccd735e24c5ac56c759d7
parentba5f3c7c8ecc1037e44904916989a1c65777a9d5
Don't mount selinux fs in LXC if selinux is disabled

Before trying to mount the selinux filesystem in a container
use is_selinux_enabled() to check if the machine actually
has selinux support (eg not booted with selinux=0)

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/lxc/lxc_container.c