[CRIU] [PATCH v3 25/55] ns: Add MAX_NS_NESTING

Kirill Tkhai ktkhai at virtuozzo.com
Mon Apr 10 01:19:11 PDT 2017


It's maximum number of levels of namespaces found in linux kernel.

Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 criu/include/namespaces.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/criu/include/namespaces.h b/criu/include/namespaces.h
index 8cdcd2651..551d18aa3 100644
--- a/criu/include/namespaces.h
+++ b/criu/include/namespaces.h
@@ -42,6 +42,7 @@
 /* Nested namespaces are supported only for these types */
 #define CLONE_SUBNS	(CLONE_NEWNS | CLONE_NEWNET | CLONE_NEWUSER)
 
+#define MAX_NS_NESTING	32
 #define EXTRA_SIZE	20
 
 #ifndef NSIO



More information about the CRIU mailing list