qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PULL 0/1] spice: auth fixes
@ 2014-07-11  9:36 Gerd Hoffmann
  2014-07-11  9:36 ` [Qemu-devel] [PULL 1/1] " Gerd Hoffmann
  2014-07-11 15:00 ` [Qemu-devel] [PULL 0/1] " Peter Maydell
  0 siblings, 2 replies; 6+ messages in thread
From: Gerd Hoffmann @ 2014-07-11  9:36 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann

  Hi,

Bugfix for spice sasl authentication.

please pull,
  Gerd

The following changes since commit 9e99c5fd7060267a0331d900e73fdb36047bfe0c:

  tests: Fix unterminated string output visitor enum human string (2014-07-10 11:53:14 +0100)

are available in the git repository at:

  git://anongit.freedesktop.org/spice/qemu tags/pull-spice-20140711-1

for you to fetch changes up to b1ea7b79e1675355ea7abe2548ad71dcf7d64b60:

  spice: auth fixes (2014-07-11 10:12:47 +0200)

----------------------------------------------------------------
spice: auth fixes

----------------------------------------------------------------
Gerd Hoffmann (1):
      spice: auth fixes

 ui/spice-core.c | 5 +++++
 1 file changed, 5 insertions(+)

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

* [Qemu-devel] [PULL 1/1] spice: auth fixes
  2014-07-11  9:36 [Qemu-devel] [PULL 0/1] spice: auth fixes Gerd Hoffmann
@ 2014-07-11  9:36 ` Gerd Hoffmann
  2014-07-11 11:18   ` Markus Armbruster
  2014-07-11 15:00 ` [Qemu-devel] [PULL 0/1] " Peter Maydell
  1 sibling, 1 reply; 6+ messages in thread
From: Gerd Hoffmann @ 2014-07-11  9:36 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann, Anthony Liguori

Set auth to sasl when sasl is enabled, this makes "info spice" correctly
display sasl auth.  Also throw an error in case someone tries to set
a spice password via monitor without auth mode being "spice".

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 ui/spice-core.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/ui/spice-core.c b/ui/spice-core.c
index 70df446..7bb91e6 100644
--- a/ui/spice-core.c
+++ b/ui/spice-core.c
@@ -741,6 +741,7 @@ void qemu_spice_init(void)
             error_report("spice: failed to enable sasl");
             exit(1);
         }
+        auth = "sasl";
     }
     if (qemu_opt_get_bool(opts, "disable-ticketing", 0)) {
         auth = "none";
@@ -894,6 +895,10 @@ static int qemu_spice_set_ticket(bool fail_if_conn, bool disconnect_if_conn)
 int qemu_spice_set_passwd(const char *passwd,
                           bool fail_if_conn, bool disconnect_if_conn)
 {
+    if (strcmp(auth, "spice") != 0) {
+        return -1;
+    }
+
     g_free(auth_passwd);
     auth_passwd = g_strdup(passwd);
     return qemu_spice_set_ticket(fail_if_conn, disconnect_if_conn);
-- 
1.8.3.1

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

* Re: [Qemu-devel] [PULL 1/1] spice: auth fixes
  2014-07-11  9:36 ` [Qemu-devel] [PULL 1/1] " Gerd Hoffmann
@ 2014-07-11 11:18   ` Markus Armbruster
  2014-07-11 11:20     ` Peter Maydell
  0 siblings, 1 reply; 6+ messages in thread
From: Markus Armbruster @ 2014-07-11 11:18 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel, Anthony Liguori

Gerd Hoffmann <kraxel@redhat.com> writes:

> Set auth to sasl when sasl is enabled, this makes "info spice" correctly
> display sasl auth.

Fixes SPICE_CHANNEL_EVENT_CONNECTED similarly, doesn't it?

If yes, I'd recommend to note this in the commit message.

>                     Also throw an error in case someone tries to set
> a spice password via monitor without auth mode being "spice".
>
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>

Since the patch looks fine to me:

Reviewed-by: Markus Armbruster <armbru@redhat.com>

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

* Re: [Qemu-devel] [PULL 1/1] spice: auth fixes
  2014-07-11 11:18   ` Markus Armbruster
@ 2014-07-11 11:20     ` Peter Maydell
  2014-07-11 11:36       ` Markus Armbruster
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Maydell @ 2014-07-11 11:20 UTC (permalink / raw)
  To: Markus Armbruster; +Cc: Gerd Hoffmann, Anthony Liguori, QEMU Developers

On 11 July 2014 12:18, Markus Armbruster <armbru@redhat.com> wrote:
> Gerd Hoffmann <kraxel@redhat.com> writes:
>
>> Set auth to sasl when sasl is enabled, this makes "info spice" correctly
>> display sasl auth.
>
> Fixes SPICE_CHANNEL_EVENT_CONNECTED similarly, doesn't it?
>
> If yes, I'd recommend to note this in the commit message.
>
>>                     Also throw an error in case someone tries to set
>> a spice password via monitor without auth mode being "spice".
>>
>> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
>
> Since the patch looks fine to me:
>
> Reviewed-by: Markus Armbruster <armbru@redhat.com>

Bit late now, given this is the pullreq; original patch was on
list for review 2 July.

thanks
-- PMM

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

* Re: [Qemu-devel] [PULL 1/1] spice: auth fixes
  2014-07-11 11:20     ` Peter Maydell
@ 2014-07-11 11:36       ` Markus Armbruster
  0 siblings, 0 replies; 6+ messages in thread
From: Markus Armbruster @ 2014-07-11 11:36 UTC (permalink / raw)
  To: Peter Maydell; +Cc: Gerd Hoffmann, Anthony Liguori, QEMU Developers

Peter Maydell <peter.maydell@linaro.org> writes:

> On 11 July 2014 12:18, Markus Armbruster <armbru@redhat.com> wrote:
>> Gerd Hoffmann <kraxel@redhat.com> writes:
>>
>>> Set auth to sasl when sasl is enabled, this makes "info spice" correctly
>>> display sasl auth.
>>
>> Fixes SPICE_CHANNEL_EVENT_CONNECTED similarly, doesn't it?
>>
>> If yes, I'd recommend to note this in the commit message.
>>
>>>                     Also throw an error in case someone tries to set
>>> a spice password via monitor without auth mode being "spice".
>>>
>>> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
>>
>> Since the patch looks fine to me:
>>
>> Reviewed-by: Markus Armbruster <armbru@redhat.com>
>
> Bit late now, given this is the pullreq; original patch was on
> list for review 2 July.

I spotted the PULL in the subject right after I sent %-}

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

* Re: [Qemu-devel] [PULL 0/1] spice: auth fixes
  2014-07-11  9:36 [Qemu-devel] [PULL 0/1] spice: auth fixes Gerd Hoffmann
  2014-07-11  9:36 ` [Qemu-devel] [PULL 1/1] " Gerd Hoffmann
@ 2014-07-11 15:00 ` Peter Maydell
  1 sibling, 0 replies; 6+ messages in thread
From: Peter Maydell @ 2014-07-11 15:00 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: QEMU Developers

On 11 July 2014 10:36, Gerd Hoffmann <kraxel@redhat.com> wrote:
>   Hi,
>
> Bugfix for spice sasl authentication.
>
> please pull,
>   Gerd
>
> The following changes since commit 9e99c5fd7060267a0331d900e73fdb36047bfe0c:
>
>   tests: Fix unterminated string output visitor enum human string (2014-07-10 11:53:14 +0100)
>
> are available in the git repository at:
>
>   git://anongit.freedesktop.org/spice/qemu tags/pull-spice-20140711-1
>
> for you to fetch changes up to b1ea7b79e1675355ea7abe2548ad71dcf7d64b60:
>
>   spice: auth fixes (2014-07-11 10:12:47 +0200)
>
> ----------------------------------------------------------------
> spice: auth fixes
>
> ----------------------------------------------------------------
> Gerd Hoffmann (1):
>       spice: auth fixes

Applied, thanks.


-- PMM

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

end of thread, other threads:[~2014-07-11 15:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-11  9:36 [Qemu-devel] [PULL 0/1] spice: auth fixes Gerd Hoffmann
2014-07-11  9:36 ` [Qemu-devel] [PULL 1/1] " Gerd Hoffmann
2014-07-11 11:18   ` Markus Armbruster
2014-07-11 11:20     ` Peter Maydell
2014-07-11 11:36       ` Markus Armbruster
2014-07-11 15:00 ` [Qemu-devel] [PULL 0/1] " Peter Maydell

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).