qemu: Let empty default VNC password work as documented v1.0.1-maint
authorJiri Denemark <jdenemar@redhat.com>
Tue, 28 Jun 2016 12:39:58 +0000 (14:39 +0200)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 4 Jul 2016 09:13:23 +0000 (10:13 +0100)
commit36386a9356ca161a325af51a0b0b555090afebff
treec8f63c3461ecd50f36d4d32e582debf2301232f6
parent34ca5684970fc5e4be0ec29809b73dea7be2d84f
qemu: Let empty default VNC password work as documented

CVE-2016-5008

Setting an empty graphics password is documented as a way to disable
VNC/SPICE access, but QEMU does not always behaves like that. VNC would
happily accept the empty password. Let's enforce the behavior by setting
password expiration to "now".

https://bugzilla.redhat.com/show_bug.cgi?id=1180092

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
(cherry picked from commit bb848feec0f3f10e92dd8e5231ae7aa89b5598f3)
(cherry picked from commit d933f68ee660566b52cd90330aee0d5f414636a4)
src/qemu/qemu_hotplug.c