]> git.proxmox.com Git - pve-container.git/commitdiff
vzdump: use --make-rslave instead of --make-rprivate
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 12 Dec 2016 09:11:55 +0000 (10:11 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 20 Dec 2016 09:36:34 +0000 (10:36 +0100)
In a stop mode backup of a running container the container
is started from this namespace, so making it private can
cause mount point leaks.

src/PVE/VZDump/LXC.pm

index 46b5bd2df916a8ac2b5910627784273132889b20..0d871a1cd921e44b12bcb8394532fbc6aacb5404 100644 (file)
@@ -176,7 +176,7 @@ sub prepare {
        # If we perform mount operations, let's unshare the mount namespace
        # to not influence the running host.
        PVE::Tools::unshare(PVE::Tools::CLONE_NEWNS);
        # If we perform mount operations, let's unshare the mount namespace
        # to not influence the running host.
        PVE::Tools::unshare(PVE::Tools::CLONE_NEWNS);
-       PVE::Tools::run_command(['mount', '--make-rprivate', '/']);
+       PVE::Tools::run_command(['mount', '--make-rslave', '/']);
     }
 }
 
     }
 }