xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [Xen-devel] [XEN PATCH for-4.13] libxl: Fix setting vncpasswd to empty string
@ 2019-11-04 15:30 Anthony PERARD
  2019-11-05 11:31 ` Wei Liu
  2019-11-08  6:14 ` Jürgen Groß
  0 siblings, 2 replies; 3+ messages in thread
From: Anthony PERARD @ 2019-11-04 15:30 UTC (permalink / raw)
  To: xen-devel
  Cc: Anthony PERARD, Jürgen Groß,
	Ian Jackson, Wei Liu, Roger Pau Monné

Before 93dcc22, error from setting the vnc password to an empty
string, when QEMU wasn't expected a password, never prevented the creation
of a guest, and only logged an error message.

Reported-by: Roger Pau Monné <roger.pau@citrix.com>
Fixes: 93dcc22fe798c9fa5ce117f1ed6db0d8bd779020
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
---
 tools/libxl/libxl_dm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
index 7e52f0973172..8e0fb78bd2f3 100644
--- a/tools/libxl/libxl_dm.c
+++ b/tools/libxl/libxl_dm.c
@@ -2936,7 +2936,7 @@ static void device_model_postconfig_vnc(libxl__egc *egc,
         if (rc) goto out;
     }
 
-    if (vnc && vnc->passwd) {
+    if (vnc && vnc->passwd && vnc->passwd[0]) {
         qmp->callback = device_model_postconfig_vnc_passwd;
         libxl__qmp_param_add_string(gc, &args, "password", vnc->passwd);
         rc = libxl__ev_qmp_send(gc, qmp, "change-vnc-password", args);
-- 
Anthony PERARD


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Xen-devel] [XEN PATCH for-4.13] libxl: Fix setting vncpasswd to empty string
  2019-11-04 15:30 [Xen-devel] [XEN PATCH for-4.13] libxl: Fix setting vncpasswd to empty string Anthony PERARD
@ 2019-11-05 11:31 ` Wei Liu
  2019-11-08  6:14 ` Jürgen Groß
  1 sibling, 0 replies; 3+ messages in thread
From: Wei Liu @ 2019-11-05 11:31 UTC (permalink / raw)
  To: Anthony PERARD
  Cc: Jürgen Groß,
	xen-devel, Ian Jackson, Wei Liu, Roger Pau Monné

On Mon, Nov 04, 2019 at 03:30:47PM +0000, Anthony PERARD wrote:
> Before 93dcc22, error from setting the vnc password to an empty
> string, when QEMU wasn't expected a password, never prevented the creation
> of a guest, and only logged an error message.
> 
> Reported-by: Roger Pau Monné <roger.pau@citrix.com>
> Fixes: 93dcc22fe798c9fa5ce117f1ed6db0d8bd779020
> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>

Acked-by: Wei Liu <wl@xen.org>

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xen-devel] [XEN PATCH for-4.13] libxl: Fix setting vncpasswd to empty string
  2019-11-04 15:30 [Xen-devel] [XEN PATCH for-4.13] libxl: Fix setting vncpasswd to empty string Anthony PERARD
  2019-11-05 11:31 ` Wei Liu
@ 2019-11-08  6:14 ` Jürgen Groß
  1 sibling, 0 replies; 3+ messages in thread
From: Jürgen Groß @ 2019-11-08  6:14 UTC (permalink / raw)
  To: Anthony PERARD, xen-devel; +Cc: Ian Jackson, Wei Liu, Roger Pau Monné

On 04.11.19 16:30, Anthony PERARD wrote:
> Before 93dcc22, error from setting the vnc password to an empty
> string, when QEMU wasn't expected a password, never prevented the creation
> of a guest, and only logged an error message.
> 
> Reported-by: Roger Pau Monné <roger.pau@citrix.com>
> Fixes: 93dcc22fe798c9fa5ce117f1ed6db0d8bd779020
> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>

Release-acked-by: Juergen Gross <jgross@suse.com>


Juergen

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-11-08  6:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-04 15:30 [Xen-devel] [XEN PATCH for-4.13] libxl: Fix setting vncpasswd to empty string Anthony PERARD
2019-11-05 11:31 ` Wei Liu
2019-11-08  6:14 ` Jürgen Groß

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).