This is the mail archive of the
mailing list for the Cygwin project.
Re: Logging-in using ssh elevates the user privilege.
On Fri, 8 Mar 2019 15:11:18 +0100 Corinna Vinschen wrote:
> setsockopt (sock, SOL_SOCKET, SO_PEERCRED, NULL, 0);
> before calling accept or connect.
I added this to the test code but it failed as:
accept: Software caused connection abort
Of course, setsockopt() was added also before connect().
So, I moved the setsockopt() from just before accept()
to just before listen(), then it succeeded.
Does this affect to listen() as well?
Takashi Yano <firstname.lastname@example.org>
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple