]> xenbits.xensource.com Git - libvirt.git/commit
LXC: fix the problem that libvirt lxc fail to start on latest kernel
authorGao feng <gaofeng@cn.fujitsu.com>
Wed, 20 Nov 2013 02:11:08 +0000 (10:11 +0800)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 26 Nov 2013 12:22:25 +0000 (12:22 +0000)
commit46f2d16f07137ff677f76fe5de04429b97a86bf5
treea96bc6a270b2c3347ff3fbb5af7ebe651d0e9f8e
parent78e909686510c0ae1ce2c45aa08d44c80a51dcda
LXC: fix the problem that libvirt lxc fail to start on latest kernel

After kernel commit 5ff9d8a65ce80efb509ce4e8051394e9ed2cd942
vfs: Lock in place mounts from more privileged users,

unprivileged user has no rights to move the mounts that
inherited from parent mountns. we use this feature to move
the /stateDir/domain-name.{dev, devpts} to the /dev/ and
/dev/pts directroy of container. this commit breaks libvirt lxc.

this patch changes the behavior to bind these mounts when
user namespace is enabled and move these mounts when user
namespace is disabled.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
src/lxc/lxc_container.c