CVSROOT:        /cvs/src
Module name:    src
Changes by:     cori...@sourceware.org  2014-10-11 18:28:04

Modified files:
        winsup/cygwin  : ChangeLog fhandler.h fhandler_socket.cc net.cc 
        winsup/cygwin/include/cygwin: version.h 

Log message:
        Add setsockopt(sd, SOL_SOCKET, SO_PEERCRED, NULL, 0) to disable
        initial handshake on AF_LOCAL sockets.
        * fhandler.h (class fhandler_socket): Add no_getpeereid status flag.
        (fhandler_socket::af_local_set_no_getpeereid): New prototype.
        * fhandler_socket.cc (fhandler_socket::af_local_connect): Skip handshake
        if no_getpeereid is set.  Add debug output.
        (fhandler_socket::af_local_accept): Likewise.
        (fhandler_socket::af_local_set_no_getpeereid): New function.
        (fhandler_socket::af_local_copy): Copy no_getpeereid.
        (fhandler_socket::getpeereid): Fail if no_getpeereid is set.
        * net.cc (cygwin_setsockopt): Add SO_PEERCRED for AF_LOCAL/SOCK_STREAM
        sockets.  Add comment to explain why we need it.
        * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=src&r1=1.6532&r2=1.6533
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler.h.diff?cvsroot=src&r1=1.507&r2=1.508
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_socket.cc.diff?cvsroot=src&r1=1.313&r2=1.314
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/net.cc.diff?cvsroot=src&r1=1.318&r2=1.319
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/include/cygwin/version.h.diff?cvsroot=src&r1=1.407&r2=1.408

Reply via email to