[CRIU] [PATCH] namespaces: don't for to skip cgroup namespace
Tycho Andersen
tycho.andersen at canonical.com
Tue Jul 19 08:56:26 PDT 2016
Instead, let's skip it before we fork.
Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
criu/namespaces.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/criu/namespaces.c b/criu/namespaces.c
index f9a7779..47bb861 100644
--- a/criu/namespaces.c
+++ b/criu/namespaces.c
@@ -981,11 +981,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;
@@ -1032,6 +1027,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;
}
--
2.7.4
More information about the CRIU
mailing list