It was reported [1] that qemu did not properly drop extra group privileges when started as root with the -runas commandline option. This means that the extra GID's would give qemu elevated privileges to read or write files that the supplementary groups allowed, because qemu is still running with group root privileges When qemu is used by libvirt or vdsm (to launch KVM), however, libvirt itself drops privileges prior to launching qemu, so when started in this fashion there is no elevation of privileges to the qemu process. [1] https://bugs.launchpad.net/qemu/+bug/807893
A proposed patch is available here: https://bugs.launchpad.net/qemu/+bug/807893/comments/1 This also only affects qemu versions greater than 0.10.0 (where the -runas option was introduced).
Created qemu tracking bugs for this issue Affects: fedora-all [bug 720784] Affects: epel-5 [bug 720785]
Created attachment 513239 [details] upstream patch Commit cc4662f9642995c78bed587707eeb9ad8500035b from upstream to fix the flaw.
Statement: Future qemu-kvm updates in Red Hat Enterprise Linux 6 may address this flaw. This issue did not affect the versions of qemu-kvm as shipped with Red Hat Enterprise Linux 5 as it did not include support for "run as" functionality.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Cause: qemu did not properly drop extra group privileges when started as root with the -runas commandline option. Consequence: extra GID's would give qemu elevated privileges to read or write files that the supplementary groups allowed, because qemu is still running with group root privileges. Fix: Added an initgroups(3) call to use the -runas user's /etc/groups membership to update the supplementary group IDs. Result: extra group privileges are now properly dropped when using -runas.
This issue has been addressed in following products: Red Hat Enterprise Linux 6 Via RHSA-2011:1531 https://rhn.redhat.com/errata/RHSA-2011-1531.html
qemu-0.14.0-9.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.