diff --git a/mount.c b/mount.c index eb2e9829f..93b3fe3ca 100644 --- a/mount.c +++ b/mount.c @@ -1531,6 +1531,8 @@ int mntns_collect_root(pid_t pid) int ret; char path[PATH_MAX + 1]; + close_service_fd(ROOT_FD_OFF); + if (!(current_ns_mask & CLONE_NEWNS)) { /* * If criu and tasks we dump live in the same mount