[RESEND,v1,28/55] ns: Add MAX_NS_NESTING

Submitted by Kirill Tkhai on March 24, 2017, 3:13 p.m.

Details

Message ID 149036840951.23093.1667255234092147.stgit@localhost.localdomain
State New
Series "Nested pid namespaces support"
Headers show

Commit Message

Kirill Tkhai March 24, 2017, 3:13 p.m.
It's maximum number of levels of namespaces found in linux kernel.

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

Patch hide | download patch | download mbox

diff --git a/criu/include/namespaces.h b/criu/include/namespaces.h
index 50727513..81a1cd73 100644
--- a/criu/include/namespaces.h
+++ b/criu/include/namespaces.h
@@ -41,6 +41,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