Logging-in using ssh elevates the user privilege.

Takashi Yano takashi.yano@nifty.ne.jp
Fri Mar 8 16:21:00 GMT 2019


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.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list