ui patch queue
Hi,
Flushing ui patch queue. Just a few small fixes, no major changes.
please pull,
Gerd
The following changes since commit 4aaddc2976bff1918edcd53900b647dde473dd4d:
Merge remote-tracking branch 'remotes/mcayland/tags/qemu-sparc-signed' into staging (2016-01-18 09:33:36 +0000)
are available in the git repository at:
git://git.kraxel.org/qemu tags/pull-ui-20160118-1
for you to fetch changes up to c62e90af8c2e8b1a89d973963db2bb817702bf42:
vnc: fix tls-creds error message (2016-01-18 16:36:21 +0100)
----------------------------------------------------------------
ui: misc small gtk/spice/vnc patches.
----------------------------------------------------------------
Christophe Fergeau (1):
Fix corner-case when using VNC+SASL+SPICE
Paolo Bonzini (1):
gtk: implement set_echo
Wolfgang Bumiller (2):
vnc: clear vs->tlscreds after unparenting it
vnc: fix tls-creds error message
include/ui/gtk.h | 1 + ui/gtk.c | 45 ++++++++++++++++++++++++++++++++++++++++++++- ui/spice-core.c | 4 ++-- ui/vnc.c | 3 ++- 4 files changed, 49 insertions(+), 4 deletions(-)
[Qemu-devel] [PULL 1/4] gtk: implement set_echo
From: Paolo Bonzini <[email protected]>
Even without line editing, this makes -qmp vc more pleasant with the GTK+ backend. The only issue is that set_echo is invoked very early, long before a vc is actually associated with a VirtualConsole. To work around this, create a temporary VirtualConsole until then.
Message-id: [email protected]
--- include/ui/gtk.h | 1 + ui/gtk.c | 45 ++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 45 insertions(+), 1 deletion(-)
include/ui/gtk.h +1 -0
@@ -61,6 +61,7 @@ typedef struct VirtualVteConsole {GtkWidget *scrollbar;GtkWidget *terminal;CharDriverState *chr; + bool echo; } VirtualVteConsole;#endif
ui/gtk.c +44 -1
84 lines not on this page · raw message
Signature · 1 line
1.8.3.1
[Qemu-devel] [PULL 2/4] vnc: clear vs->tlscreds after unparenting it
In reply to Gerd HoffmannFrom: Wolfgang Bumiller <[email protected]>
This pointer should be cleared in vnc_display_close() otherwise a use-after-free can happen when when using the old style 'x509' and 'tls' options rather than a persistent tls-creds -object, by issuing monitor commands to change the vnc server like so:
Start with: -vnc unix:test.socket,x509,tls
Then use the following monitor command:
change vnc unix:test.socket
After this the pointer is still set but invalid and a crash can be triggered for instance by issuing the same command a second time which will try to object_unparent() the same pointer again.
--- ui/vnc.c | 1 + 1 file changed, 1 insertion(+)
ui/vnc.c +1 -0
@@ -3134,6 +3134,7 @@ static void vnc_display_close(VncDisplay *vs) vs->subauth =VNC_AUTH_INVALID ;if (vs->tlscreds) {object_unparent (OBJECT (vs->tlscreds)); + vs->tlscreds =NULL ; }g_free (vs->tlsaclname); vs->tlsaclname =NULL ;
Signature · 1 line
1.8.3.1
[Qemu-devel] [PULL 3/4] Fix corner-case when using VNC+SASL+SPICE
In reply to Gerd HoffmannFrom: Christophe Fergeau <[email protected]>
Similarly to the commit 764eb39d1b6 fixing VNC+SASL+QXL, when starting QEMU with SPICE but no SASL, and at the same time VNC with SASL, then spice_server_init() will get called without a previous call to spice_server_set_sasl_appname(), which will cause cyrus-sasl to try to use /etc/sasl2/spice.conf (spice-server uses "spice" as its default appname) rather than the expected /etc/sasl2/qemu.conf.
This commit unconditionally calls spice_server_set_sasl_appname() before calling spice_server_init() in order to use the correct appname even if SPICE without SASL was requested on qemu command line.
Message-id: [email protected]
--- ui/spice-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
ui/spice-core.c +2 -2
@@ -727,8 +727,7 @@ void qemu_spice_init(void)qemu_spice_set_passwd (password, false, false); }if (qemu_opt_get_bool (opts,"sasl" ,0 )) { -if (spice_server_set_sasl_appname (spice_server,"qemu" ) ==-1 || -spice_server_set_sasl (spice_server,1 ) ==-1 ) { +if (spice_server_set_sasl (spice_server,1 ) ==-1 ) {error_report ("spice: failed to enable sasl" );exit (1 ); }
@@ -794,6 +793,7 @@ void qemu_spice_init(void) seamless_migration =qemu_opt_get_bool (opts,"seamless-migration" ,0 );spice_server_set_seamless_migration (spice_server, seamless_migration); +spice_server_set_sasl_appname (spice_server,"qemu" );if (spice_server_init (spice_server, &core_interface) !=0 ) {error_report ("failed to initialize spice server" );exit (1 );
Signature · 1 line
1.8.3.1
[Qemu-devel] [PULL 4/4] vnc: fix tls-creds error message
In reply to Gerd HoffmannFrom: Wolfgang Bumiller <[email protected]>
The parameter is called 'tls-creds', 'credid' is just the variable name in the code.
Message-id: [email protected]
--- ui/vnc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ui/vnc.c +1 -1
@@ -3606,7 +3606,7 @@ void vnc_display_open(const char *id, Error **errp) qemu_opt_get(opts, "x509") || qemu_opt_get(opts, "x509verify")) {error_setg (errp, -"'credid' parameter is mutually exclusive with " +"'tls-creds' parameter is mutually exclusive with " "'tls', 'x509' and 'x509verify' parameters" ); goto fail; }
Signature · 1 line
1.8.3.1
Peter Maydell
AppliedQuoted 14 lines · Gerd Hoffmann
Hi,
Flushing ui patch queue. Just a few small fixes, no major changes.
please pull,
GerdThe following changes since commit
4aaddc2976bff1918edcd53900b647dde473dd4d:Merge remote-tracking branch 'remotes/mcayland/tags/qemu-sparc-signed' into staging (2016-01-18 09:33:36 +0000)
are available in the git repository at:
Quoted 8 lines
git://git.kraxel.org/qemutags/pull-ui-20160118-1for you to fetch changes up to
c62e90af8c2e8b1a89d973963db2bb817702bf42:vnc: fix tls-creds error message (2016-01-18 16:36:21 +0100)
----------------------------------------------------------------
ui: misc small gtk/spice/vnc patches.
Applied, thanks.
-- PMM