[libvirt] [PATCH v3 15/16] Add an API for re-mounting cgroups, to isolate the process location
Daniel P. Berrange
berrange at redhat.com
Fri Apr 12 08:54:55 UTC 2013
On Fri, Apr 12, 2013 at 10:53:24AM +0800, Gao feng wrote:
> On 04/10/2013 06:08 PM, Daniel P. Berrange wrote:
> > From: "Daniel P. Berrange" <berrange at redhat.com>
> >
> > Add a virCgroupIsolateMount method which looks at where the
> > current process is place in the cgroups (eg /system/demo.lxc.libvirt)
> > and then remounts the cgroups such that this sub-directory
> > becomes the root directory from the current process' POV.
> >
> > Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> > ---
>
> I noticed that this patch doesn't mount the subsystem which
> isn't used by libvirt, such as net_cls, is this what we expected?
>
> I prefer to mount these subsystems too.
Hmm, yes, we should be mounting all of them
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the libvir-list
mailing list