• G
    LXC: fix the problem that libvirt lxc fail to start on latest kernel · 46f2d16f
    Gao feng 提交于
    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: NGao feng <gaofeng@cn.fujitsu.com>
    46f2d16f
lxc_container.c 59.0 KB