]> 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)
committerJim Fehlig <jfehlig@suse.com>
Thu, 11 Jul 2013 16:52:04 +0000 (10:52 -0600)
commit647156870e59fa334deb6b3601f2aff62b0f5d20
tree3a72e19e65dd2417f5f93b5f1507087cd1f69a65
parent269dfa0e08f01aa5ffda0e67b844fe7c03d51a99
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>
(cherry picked from commit 95c6cc344bec8405636d2a59fc0c34e0581001ab)
src/lxc/lxc_container.c