Web lists-archives.com

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

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@xxxxxxxxxxx>

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