Logging-in using ssh elevates the user privilege.

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Mar 8 17:14:00 GMT 2019


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20190308/0a9b15e4/attachment.sig>


More information about the Cygwin mailing list