You need to sign in or sign up before continuing.
  • P
    qemu: launch bridge helper from libvirtd · 2d80fbb1
    Paolo Bonzini 提交于
    <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: NPaolo Bonzini <pbonzini@redhat.com>
    2d80fbb1
qemu_command.h 10.3 KB