[PATCH] Disable AF_UNIX handshake with setsockopt(..., SO_PEERCRED, ...)
Christian Franke
Christian.Franke@t-online.de
Thu Sep 25 12:40:00 GMT 2014
This is a workaround for this problem which blocks ITP postfix:
https://cygwin.com/ml/cygwin/2014-08/msg00420.html
With the patch, this disables the secret+cred handshakes of the AF_UNIX
emulation:
int sd = socket(AF_UNIX, SOCK_STREAM, 0);
setsockopt(sd, SOL_SOCKET, SO_PEERCRED, NULL, 0);
Postfix works if socket() calls are replaced by the above.
Calls of getsockopt(..., SO_PEERCRED, ...) and getpeereid() would fail with ENOTSUP then. These are not used by postfix.
Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setsockopt-so_peercred.patch
Type: text/x-patch
Size: 5080 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20140925/ecb49241/attachment.bin>
More information about the Cygwin-patches
mailing list