[CRIU] [PATCH 1/2] cgroups: Add ability to reuse existing cgroup yard directory

Cyrill Gorcunov gorcunov at gmail.com
Thu Jun 11 22:47:48 PDT 2015


On Thu, Jun 11, 2015 at 09:31:30PM -0600, Tycho Andersen wrote:
> On Thu, Jun 11, 2015 at 08:04:02PM +0300, Cyrill Gorcunov wrote:
> > Currently we always create temporary directory where we restore
> > cgroups, but this won't work in case if mounting cgroups is forbidden
> > from inside of a container for some reason (as in OpenVZ kernel).
> > 
> > So one can pass --cgroup-yard option to specify an existing
> > directory where cgroups are living. By default we assume it
> > lays in /sys/fs/cgroup.
> 
> I thought we chose not to use /sys/fs/cgroup originally because
> someone could unmount it from underneath us?

Never headr of such thing. Still one can pass --cgroup-yard option
and define the directory to use instead of /sys/fs/cgroup (it should
be premounted by caller then).


More information about the CRIU mailing list