mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +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
1 changed files with 8 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue