mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 09:58:09 +00:00
mount: Don't create kids with CLONE_NEWNS
We explicitly setns() every single task by hands when restoring mount namespaces, they can be created without the NEWNS flag. Signed-off-by: Pavel Emelyanov <xemul@parallels.com> Acked-by: Andrey Vagin <avagin@parallels.com>
This commit is contained in:
parent
63c9478a4a
commit
d513098f3c
8
pstree.c
8
pstree.c
@ -662,6 +662,14 @@ static int prepare_pstree_kobj_ids(void)
|
||||
|
||||
set_mask:
|
||||
item->rst->clone_flags = cflags;
|
||||
if (parent)
|
||||
/*
|
||||
* Mount namespaces are setns()-ed at
|
||||
* restore_task_mnt_ns() explicitly,
|
||||
* no need in creating it with its own
|
||||
* temporary namespace
|
||||
*/
|
||||
item->rst->clone_flags &= ~CLONE_NEWNS;
|
||||
|
||||
cflags &= CLONE_ALLNS;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user