qemu: Let empty default VNC password work as documented v1.2.10-maint
authorJiri Denemark <jdenemar@redhat.com>
Tue, 28 Jun 2016 12:39:58 +0000 (14:39 +0200)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 30 Jun 2016 11:54:01 +0000 (12:54 +0100)
commit33802d62af95fd7a4e86f2755efe94af59158fea
treed12159b946a32ca078331d1d8bdd4ea1ac31f6e3
parent53ae31bf4df364a2110f636d5482b21af4e4a0cc
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)
src/qemu/qemu_hotplug.c