]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc: don't unmount subtree if it contains the source of the mount
authorCédric Bosdonnat <cbosdonnat@suse.com>
Mon, 24 Nov 2014 14:10:19 +0000 (15:10 +0100)
committerCédric Bosdonnat <cbosdonnat@suse.com>
Tue, 25 Nov 2014 10:40:55 +0000 (11:40 +0100)
commite50457dd4cc5d4ba1ac7b05734157524620d087f
treeda3a24ada60d20b2b9210f7220dbfed2c07d3a69
parent72fecf1813b9e77a7f89bc1e708f91bdab7d9ad4
lxc: don't unmount subtree if it contains the source of the mount

The typical case where we had a problem is with such a filesystem
definition as created by virt-sandbox-service:

    <filesystem type='bind' accessmode='passthrough'>
      <source dir='/var/lib/libvirt/filesystems/mysshd/var'/>
      <target dir='/var'/>
    </filesystem>

In this case, we don't want to unmount the /var subtree or we may
loose the access to the source folder.
src/lxc/lxc_container.c