]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Ensure existing selinux mount is removed before mounting new one in LXC
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 18 Sep 2012 11:25:56 +0000 (12:25 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 21 Sep 2012 09:27:42 +0000 (10:27 +0100)
commitc15d893252e8000d26a33813027edde38e1b6912
tree7dff5b38d2cab9d833bfa774f4ec9d0cd71e338f
parentab42772a46e17d14204359a17234b2d9cee0ddb6
Ensure existing selinux mount is removed before mounting new one in LXC

Some kernel versions (at least RHEL-6 2.6.32) do not let you over-mount
an existing selinuxfs instance with a new one. Thus we must unmount the
existing instance inside our namespace.

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