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

Tycho Andersen tycho.andersen at canonical.com
Wed Mar 2 16:30:42 PST 2016


On Thu, Mar 03, 2016 at 12:29:21AM +0000, Serge Hallyn wrote:
> Quoting Tycho Andersen (tycho.andersen at canonical.com):
> > After some discussion with Serge Hallyn, it seems that the current
> > implementation of cgroup namespaces doesn't really support nesting. It's
> 
> You mean the current criu implementation, right?  (The kernel
> handles them just fine - just making sure)

Yep, sorry, I meant the current implementation in CRIU :)

> > 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
> > 
> > _______________________________________________
> > CRIU mailing list
> > CRIU at openvz.org
> > https://lists.openvz.org/mailman/listinfo/criu


More information about the CRIU mailing list