[libvirt] [PATCH v3 13/16] Remove non-functional code for setting up non-root cgroups

Michal Privoznik mprivozn at redhat.com
Thu Apr 11 10:03:14 UTC 2013


On 10.04.2013 12:08, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> The virCgroupNewDriver method had a 'bool privileged' param.
> If a false value was ever passed in, it would simply not
> work, since non-root users don't have any privileges to create
> new cgroups. Just delete this broken code entirely and make
> the QEMU driver skip cgroup setup in non-privileged mode
> 
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
>  src/lxc/lxc_cgroup.c   |  1 -
>  src/qemu/qemu_cgroup.c |  4 +++-
>  src/util/vircgroup.c   | 27 +++------------------------
>  src/util/vircgroup.h   |  1 -
>  tests/vircgrouptest.c  | 12 ++++++------
>  5 files changed, 12 insertions(+), 33 deletions(-)


ACK

Michal




More information about the libvir-list mailing list