[PATCH] Disable AF_UNIX handshake with setsockopt(..., SO_PEERCRED, ...)
Thu Sep 25 12:40:00 GMT 2014
This is a workaround for this problem which blocks ITP postfix:
With the patch, this disables the secret+cred handshakes of the AF_UNIX
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5080 bytes
Desc: not available
More information about the Cygwin-patches