mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
namespaces: don't for to skip cgroup namespace
Instead, let's skip it before we fork. Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
ced9c529f6
commit
66f7d2f7bc
@@ -976,11 +976,6 @@ static int do_dump_namespaces(struct ns_id *ns)
|
||||
ns->id, ns->ns_pid);
|
||||
ret = dump_net_ns(ns->id);
|
||||
break;
|
||||
case CLONE_NEWCGROUP:
|
||||
pr_info("Dump CGROUP namespace info %d via %d\n",
|
||||
ns->id, ns->ns_pid);
|
||||
/* handled separately in cgroup dumping code */
|
||||
break;
|
||||
default:
|
||||
pr_err("Unknown namespace flag %x\n", ns->nd->cflag);
|
||||
break;
|
||||
@@ -1027,6 +1022,8 @@ int dump_namespaces(struct pstree_item *item, unsigned int ns_flags)
|
||||
case CLONE_NEWNS:
|
||||
/* Userns is dumped before dumping tasks */
|
||||
case CLONE_NEWUSER:
|
||||
/* handled separately in cgroup dumping code */
|
||||
case CLONE_NEWCGROUP:
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user