All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: Individual passwords for guest VNC servers ?
@ 2006-09-26 18:23 Ian Pratt
  2006-09-28  1:01 ` Masami Watanabe
  2006-09-29  8:47 ` [PATCH][Take 2] VNC authentification Masami Watanabe
  0 siblings, 2 replies; 19+ messages in thread
From: Ian Pratt @ 2006-09-26 18:23 UTC (permalink / raw)
  To: Masami Watanabe, Daniel P. Berrange, Anthony Liguori; +Cc: xen-devel

 
> Thanks all point about security, I'll do as follows.
> I thought that the point was the following two. 
> 
> 
> 1. Storage place of encrypted password
>   Should I store it in /etc/xen/passwd ?
>     Or, should I wait for DB of Xen that will be released in 
> the future?

The xend life cycle management patches were posted by Alistair a couple
of months back. They'll go in early in the 3.0.4 cycle.

>   In the latter case, the release time and information, I want you to
>   teach it.
>   Now, I think we have no choice but to use /etc/xen/passwd.

In the mean time, I'd just out them in the domain config file and change
the default permissions and ownership.

> 2. Method of Xen VNC Server receiving stored password
>   By way of xenstore. However, it is necessary to consider 
> xenstore-ls.

It can be passed transiently (i.e. it gets deleted from the store by
qemu-dm)
You need to be root to run xenstore-ls so I'm comfortable with this.

Ian

^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: [PATCH][Take 3] VNC authentification
@ 2006-10-04 23:24 Masami Watanabe
  2006-10-04 23:42 ` Daniel P. Berrange
  2006-10-05  0:56 ` Anthony Liguori
  0 siblings, 2 replies; 19+ messages in thread
From: Masami Watanabe @ 2006-10-04 23:24 UTC (permalink / raw)
  To: Anthony Liguori, Daniel P. Berrange; +Cc: Ian Pratt, xen-devel, masami.watanabe

Hi all,

My understanding of main_loop of vl.c was insufficient. 
I have improved the point to have set the handler doubly.
The protocol of protocol 3.3 and (UltraVNC's ?)3.4 did not actually
need the response of the authentification type from the client.
Therefore, protocol_authtype operated without being called.

I will post the take 4 patch after this.

The patch has limited  RFB protocol to 3.3 and 3.4.
I also think that it should support 3.8 without being support 3.3 in
the future.

However, Leaving like non authetification is not good.
You will think the patch to be provisional action till then.

Another.
ill the RFB protocol still keep evolving in the future?


Best regards,
Watanabe


On Tue, 03 Oct 2006 13:49:37 -0500, Anthony Liguori wrote:
> Daniel P. Berrange wrote:
> > On Tue, Oct 03, 2006 at 12:56:31PM -0500, Anthony Liguori wrote:
> >   
> >> Masami Watanabe wrote:
> >>     
> >>> +static int vnc_auth(VncState *vs)
> >>> +{
> >>> +    extern char vncpasswd[64];
> >>> +    extern unsigned char challenge[AUTHCHALLENGESIZE];
> >>> +
> >>> +    if (*vncpasswd == '\0') {
> >>> +	/* AuthType is None */
> >>> +	vnc_write_u32(vs, 1);
> >>> +	vnc_flush(vs);
> >>> +	vnc_read_when(vs, protocol_client_init, 1);
> >>> +    } else {
> >>> +	/* AuthType is VncAuth */
> >>> +	vnc_write_u32(vs, 2);
> >>> +	vnc_flush(vs);
> >>> +
> >>> +	/* Read AuthType */
> >>> +	vnc_read_when(vs, protocol_authtype, 1);
> >>>  
> >>>       
> >> As I mentioned before, you cannot have to vnc_read_when()'s execution 
> >> path without returning the the mainloop.
> >>
> >> protocol_authtype() cannot possibly be invoked.  If the code is working 
> >> now, it's pure luck.
> >>     
> >
> > Yeah, the impl of protocol_authtype() in there is a no-op too - it should
> > be rejecting auth types which aren't supported, even if it was being invoked.
> > With the code as it is, protocol_authtype never runs & the server starts
> > doing VNCAuth regardless of what the client says it wants to do, which is
> > clearly not correct.
> >   
> 
> Another thing to keep in mind, is that the reason I did 3.3 instead of 
> 3.8 is that I knew there was only one auth type we would be supporting.  
> If we do support multiple auth types, we really ought to move to using 
> the 3.8 protocol since that provides a negotiation mechanism.
> 
> Regards,
> 
> Anthony Liguori
> 
> > Dan.
> >   
> 

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

end of thread, other threads:[~2006-10-05  0:56 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-26 18:23 Individual passwords for guest VNC servers ? Ian Pratt
2006-09-28  1:01 ` Masami Watanabe
2006-09-29  8:47 ` [PATCH][Take 2] VNC authentification Masami Watanabe
2006-09-29 14:01   ` Anthony Liguori
2006-09-30 18:47     ` masami.watanabe
2006-09-29 22:11   ` Daniel P. Berrange
2006-09-30 18:53     ` Masami Watanabe
2006-10-02 16:22       ` Daniel P. Berrange
2006-10-02 17:24         ` Anthony Liguori
2006-10-02 18:12           ` Daniel P. Berrange
2006-10-02 19:15             ` Ian Pratt
2006-10-03  2:04               ` Masami Watanabe
2006-10-03 16:08               ` [PATCH][Take 3] " Masami Watanabe
2006-10-03 17:56                 ` Anthony Liguori
2006-10-03 18:06                   ` Daniel P. Berrange
2006-10-03 18:49                     ` Anthony Liguori
  -- strict thread matches above, loose matches on Subject: below --
2006-10-04 23:24 Masami Watanabe
2006-10-04 23:42 ` Daniel P. Berrange
2006-10-05  0:56 ` Anthony Liguori

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.