mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
userns: Don't fork task not to dump userns
Signed-off-by: Pavel Emelyanov <xemul@parallels.com> Acked-by: Andrew Vagin <avagin@parallels.com>
This commit is contained in:
@@ -722,10 +722,6 @@ static int do_dump_namespaces(struct ns_id *ns)
|
||||
ns->id, ns->pid);
|
||||
ret = dump_net_ns(ns->id);
|
||||
break;
|
||||
case CLONE_NEWUSER:
|
||||
/* userns is dumped before dumping tasks */
|
||||
ret = 0;
|
||||
break;
|
||||
default:
|
||||
pr_err("Unknown namespace flag %x", ns->nd->cflag);
|
||||
break;
|
||||
@@ -770,6 +766,8 @@ int dump_namespaces(struct pstree_item *item, unsigned int ns_flags)
|
||||
case CLONE_NEWPID:
|
||||
/* Dumped explicitly with dump_mnt_namespaces() */
|
||||
case CLONE_NEWNS:
|
||||
/* Userns is dumped before dumping tasks */
|
||||
case CLONE_NEWUSER:
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user