mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-27 03:56:05 +00:00
mntns: don't dump criu's namespace
Reported-by: Mr Jenkins Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
606bc93a1a
commit
92ee123386
1 changed files with 3 additions and 0 deletions
3
mount.c
3
mount.c
|
|
@ -2143,6 +2143,9 @@ int dump_mnt_namespaces(void)
|
|||
if (nsid->nd != &mnt_ns_desc)
|
||||
continue;
|
||||
|
||||
if (nsid->pid == getpid())
|
||||
continue;
|
||||
|
||||
if (++n == 2 && check_mnt_id()) {
|
||||
pr_err("Nested mount namespaces are not supported "
|
||||
"without mnt_id in fdinfo\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue