Web lists-archives.com

Re: Logging-in using ssh elevates the user privilege.




On Mar  9 01:21, Takashi Yano wrote:
> On Fri, 8 Mar 2019 16:56:35 +0100 Corinna Vinschen wrote:
> > > Does this affect to listen() as well?
> > 
> > No, listen isn't affected.
> 
> The cause is failure of setsockopt().
> setsockopt() before accept() failed with EALREADY.
> 
> I looked into fhandler_sock_local.cc.
> 
> In fhandler_socket_local::af_local_set_no_getpeereid(),
> connect_state() is checked if it is 'unconnected', however,
> it is 'listener' after listen() is called. So it failed.

Yeah, right.  I misunderstood your question, sorry.


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer

Attachment: signature.asc
Description: PGP signature