Received: from eggs.gnu.org ([2001:4830:134:3::10]:49581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zlejo-0003ju-PA for qemu-devel@nongnu.org; Mon, 12 Oct 2015 11:10:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zlejk-00026k-LU for qemu-devel@nongnu.org; Mon, 12 Oct 2015 11:10:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34157) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zlejk-00026V-6w for qemu-devel@nongnu.org; Mon, 12 Oct 2015 11:10:04 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id CC682C0C9A6C for ; Mon, 12 Oct 2015 15:10:03 +0000 (UTC) Date: Mon, 12 Oct 2015 17:10:01 +0200 From: Christophe Fergeau Message-ID: <20151012151001.GE14451@edamame.cdg.redhat.com> References: <1444649126-13863-1-git-send-email-cfergeau@redhat.com> <1444657431.19915.22.camel@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ey/N+yb7u/X9mFhi" Content-Disposition: inline In-Reply-To: <1444657431.19915.22.camel@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3] spice: Allow to set password even if disable-ticketing was used List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org --ey/N+yb7u/X9mFhi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey Gerd, On Mon, Oct 12, 2015 at 03:43:51PM +0200, Gerd Hoffmann wrote: > On Mo, 2015-10-12 at 13:25 +0200, Christophe Fergeau wrote: > > Before commit b1ea7b79e1, it was possible to start with -spice > > disable-ticketing, and then use the "set_password spice" command to > > enable ticketing with SPICE. Since commit b1ea7b79e1 this is no longer > > possible as qemu_spice_set_ticket() will return an error unless the > > 'auth' type is "spice". When ticketing is disabled, 'auth' is "none" so > > the attempt to set password fails. >=20 > Huh? And this actually worked? i.e. spice_server_set_ticket() has an > effect after spice_server_set_noauth() was called? Yes, this works on the spice server side. >=20 > > This change of behaviour caused a bug in oVirt > > https://gerrit.ovirt.org/#/c/44842/ >=20 > Hmm, I'd say fix this in ovirt then [1]. Fair enough (I believe this is already fixed in newer versions). >=20 > If you want run with spice authentication, then say so when starting > qemu. Switching authentication methods as side-effect of setting the > password is asking for trouble. We had that with vnc. We finally got > rid of it a while ago. I don't feel like opening that can of worms > again. >=20 > Also it encourages bad security practice. If you turn on password auth > as side effect of setting the password there is a window where one can > access the virtual machine without a password, which probably is not > what you want. >=20 > If there is an actual use case where switching authentication methods at > runtime is needed we can discuss that. But we'll be doing that as > explicit monitor command, not as side-effect of something else. Yeah, I'm not saying this patch is a good idea. However, there was a silent change (by reading the commit log which introduced it, this change is not mentioned at all, so may have been unintentional) in behaviour in QEMU, and this change causes breakage in existing apps using QEMU. This patch only attempts to fix this regression, I'm not saying one behaviour or the other is better. Christophe --ey/N+yb7u/X9mFhi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJWG81JAAoJEKnYwhQprGyCrOgP/1N+h4NgHyvpkQlAhW63btYp zdQJUOkFogumG5av9EEB+SCRrVjvmgApjcuRPqgYAfOKzJ43iV+S/zTathgq4PQk slul83RQBeHZkmC37Jct70s4+zoy4vfx9Q9ufeJDQJ45ulTBwSLFQctl+wSwGwTI DE+yztUGzYPCcj4iWe8biXgIvUiu3IjCWP7K1bY0B4XD7+65Z04Pxn/koz7BkqkZ Ul5+G4BYYjKhqOgIm65mPlFFevL4Vm0S05x7HYKTTiz8mAWVXVapC7+qCsSLjn3t 6r/G0snaD/BcLpNzG5K4KbEjC/5HdQFiRluU9ta3ER/+MmJ6M3sg39fXKQHEKrSE 6tbBns9mQ6UFwR0BzVXKhEaupWczoM+R0WwsotMNYrWRLHbFpnhZmGmCF0bID3ck h5luP0+5ATfU2VQ3qcrnZ4YD0u6rn28y1m7ovGw1MNDl4g1IKqbdkxfFQ7gp6iHr f4apRoB/xA3lpmm1YG7PvJRFiVz81+Va47cPt+063He7rQf35olkGW7v7+DQ0z8P pelVROSBssqZWKpF5nqO6WEdzB8oSx9SiiFWbIY8SxzqMz3C0z68eQBOPYE/ZH9N kyAOgotGtq1kNjRqKqISURNsyfE04zyHZG2Zn7FYsUrRRpRpiVELgj4yMQ1LXGpq mYEprmBOKthRKflhB3TG =P8d0 -----END PGP SIGNATURE----- --ey/N+yb7u/X9mFhi--