]> xenbits.xensource.com Git - people/dariof/libvirt.git/commit
virGetGroupList: always include the primary group
authorGuido Günther <agx@sigxcpu.org>
Mon, 5 Aug 2013 09:07:27 +0000 (11:07 +0200)
committerGuido Günther <agx@sigxcpu.org>
Tue, 6 Aug 2013 20:52:40 +0000 (22:52 +0200)
commit3d0e3c1a297bcecb774902774bcd21f0ac4cfa1c
treef3ce4652af687c2cffb5156d7a1a021725b58f5c
parent2df8d99138dc8396c7d46c3cceca8ce2e93b605a
virGetGroupList: always include the primary group

The change from initgroups to virGetGroupList/setgroups in
cab36cfe71ba83b71e536ba5c98e596f02b697b0 dropped the primary group from
processes group list iff the passed in group to virGetGroupList differs
from the user's primary group.

So always include the primary group to bring back the old behaviour.

Debian has the kvm group as primary group but uses
libvirt-qemu:libvirt-qemu as user:group to run the kvm process so
without this change the /dev/kvm is inaccessible.
src/util/virutil.c