[CRIU] [PATCH v2 28/57] ns: Add MAX_NS_NESTING

Kirill Tkhai ktkhai at virtuozzo.com
Tue Mar 28 08:38:23 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 b2081130..820b16d1 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