[CRIU] [PATCH 02/10] cgroup: nested cgroups aren't really supported

Tycho Andersen tycho.andersen at canonical.com
Wed Mar 2 11:28:51 PST 2016


After some discussion with Serge Hallyn, it seems that the current
implementation of cgroup namespaces doesn't really support nesting. It's
not a quick fix, so let's disable this for now (not that it matters, since
probably nobody is nesting these anyways right now :)

Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
 criu/include/namespaces.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/include/namespaces.h b/criu/include/namespaces.h
index cd74710..303c9e6 100644
--- a/criu/include/namespaces.h
+++ b/criu/include/namespaces.h
@@ -11,7 +11,7 @@
 #endif
 
 /* Nested namespaces are supported only for these types */
-#define CLONE_SUBNS	(CLONE_NEWNS | CLONE_NEWCGROUP)
+#define CLONE_SUBNS	(CLONE_NEWNS)
 
 struct ns_desc {
 	unsigned int	cflag;
-- 
2.7.0



More information about the CRIU mailing list