]> git.ipfire.org Git - thirdparty/libvirt.git/commit
LXC: don't unmount mounts for shared root
authorGao feng <gaofeng@cn.fujitsu.com>
Wed, 20 Nov 2013 02:11:09 +0000 (10:11 +0800)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 26 Nov 2013 15:55:47 +0000 (15:55 +0000)
commitf575fda74832a24062e1007663d04ee2733fcbf0
tree6091ed4d021fa5e8cba639d1178276797da9b0dd
parent46f2d16f07137ff677f76fe5de04429b97a86bf5
LXC: don't unmount mounts for shared root

Also after commit 5ff9d8a65ce80efb509ce4e8051394e9ed2cd942
vfs: Lock in place mounts from more privileged users,

unprivileged user has no rights to umount the mounts that
inherited from parent mountns.

right now, I have no good idea to fix this problem, we need
to do more research. this patch just skip unmounting these
mounts for shared root.

BTW, I think when libvirt lxc enables user namespace, the
configuation that shares root with host is very rara.

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