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.
# 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', '/']);