]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add an API for re-mounting cgroups, to isolate the process location
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 5 Apr 2013 11:48:47 +0000 (12:48 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 15 Apr 2013 16:35:32 +0000 (17:35 +0100)
commit1da631ecf37f357e1533073a34ebbc82bc901d6e
tree79d69671fe1d4c408ca31129d3c2c985de99e35e
parent83336118db1f4bf46a0ecc48b39c021fc1133924
Add an API for re-mounting cgroups, to isolate the process location

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@redhat.com>
configure.ac
include/libvirt/virterror.h
src/libvirt_private.syms
src/util/vircgroup.c
src/util/vircgroup.h
src/util/virerror.c