[v2,28/57] ns: Add MAX_NS_NESTING

Submitted by Kirill Tkhai on March 28, 2017, 3:38 p.m.

Details

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

Commit Message

Kirill Tkhai March 28, 2017, 3:38 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 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