diff --git a/cr-restore.c b/cr-restore.c index 3d14f27ee..d79da5954 100644 --- a/cr-restore.c +++ b/cr-restore.c @@ -1251,9 +1251,6 @@ static int restore_task_with_children(void *_arg) if (close_old_fds(current)) exit(1); - if (mntns_collect_root(getpid()) < 0) - exit(1); - if (root_prepare_shared()) goto err; } diff --git a/mount.c b/mount.c index a38d72471..9ee3b1249 100644 --- a/mount.c +++ b/mount.c @@ -828,9 +828,6 @@ struct mount_info *collect_mntinfo(struct ns_id *ns) { struct mount_info *pm; - if (mntns_collect_root(ns->pid) < 0) - return NULL; - pm = parse_mountinfo(ns->pid, ns); if (!pm) { pr_err("Can't parse %d's mountinfo\n", ns->pid);