summaryrefslogtreecommitdiff
path: root/tests/networkxml2xmlin
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-04-20 11:11:25 +0200
committerEric Blake <eblake@redhat.com>2013-04-26 15:37:51 -0600
commit2d80fbb14dffa45fe3fcd2c3f29ce54857bb766c (patch)
treee848193d5f6de58366b1914e477408dc3a83c251 /tests/networkxml2xmlin
parent740d98a17d0505d0be6cbf8385af8896a2455eca (diff)
downloadlibvirt-2d80fbb14dffa45fe3fcd2c3f29ce54857bb766c.tar.gz
qemu: launch bridge helper from libvirtd
<source type='bridge'> uses a helper application to do the necessary TUN/TAP setup to use an existing network bridge, thus letting unprivileged users use TUN/TAP interfaces. However, libvirt should be preventing QEMU from running any setuid programs at all, which would include this helper program. From a security POV, any setuid helper needs to be run by libvirtd itself, not QEMU. This is what this patch does. libvirt now invokes the setuid helper, gets the TAP fd and then passes it to QEMU in the normal manner. The path to the helper is specified in qemu.conf. As a small advantage, this adds a <target dev='tap0'/> element to the XML of an active domain using <interface type='bridge'>. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/networkxml2xmlin')
0 files changed, 0 insertions, 0 deletions