qemu: Let empty default VNC password work as documented
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:18:46 +0000 (10:18 +0100)
commit040c033292ad566d2ef6662c88defd511a54c13c
tree5f8ed8af157ffcee9c86fd4155c07dc00679d560
parent52f1874602b76ac857630be5d91e7cd19948d1a1
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