mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
vnc: don't skip authentication for listen type none with fixed QEMU
This was fixed by commit <fa03cb7fd21> in QEMU. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1445239 Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
e7c822bf8f
commit
0e812e3c42
@ -1198,11 +1198,11 @@ class vmmDomain(vmmLibvirtObject):
|
||||
flags = 0
|
||||
|
||||
# Ugly workaround for VNC bug where the display cannot be opened
|
||||
# if the listen type is "none". When this gets fixed in QEMU
|
||||
# we should skip auth only for broken QEMUs.
|
||||
# if the listen type is "none". This bug was fixed in QEMU-2.9.0.
|
||||
graphics = self.get_graphics_devices()[0]
|
||||
if (graphics.type == "vnc" and
|
||||
graphics.get_first_listen_type() == "none"):
|
||||
graphics.get_first_listen_type() == "none" and
|
||||
not self.conn.SUPPORT_CONN_VNC_NONE_AUTH):
|
||||
flags = libvirt.VIR_DOMAIN_OPEN_GRAPHICS_SKIPAUTH
|
||||
|
||||
return self._backend.openGraphicsFD(0, flags)
|
||||
|
@ -325,6 +325,7 @@ SUPPORT_CONN_RNG_URANDOM = _make(version="1.3.4")
|
||||
SUPPORT_CONN_USB3_PORTS = _make(version="1.3.5")
|
||||
SUPPORT_CONN_MACHVIRT_PCI_DEFAULT = _make(version="3.0.0")
|
||||
SUPPORT_CONN_QEMU_XHCI = _make(version="3.3.0")
|
||||
SUPPORT_CONN_VNC_NONE_AUTH = _make(hv_version={"qemu": "2.9.0"})
|
||||
|
||||
|
||||
# This is for disk <driver name=qemu>. xen supports this, but it's
|
||||
|
Loading…
Reference in New Issue
Block a user