[CRIU] [PATCH] mntns: don't dump criu's namespace

Andrey Vagin avagin at openvz.org
Wed Sep 24 05:49:32 PDT 2014


Reported-by: Mr Jenkins
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 mount.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/mount.c b/mount.c
index 685f340..8c60693 100644
--- a/mount.c
+++ b/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");
-- 
1.9.3



More information about the CRIU mailing list