This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: [PORTS] Re: improving security of AF_UNIX sockets
- To: Peter Eisentraut <peter_e at gmx dot net>
- Subject: Re: [PORTS] Re: improving security of AF_UNIX sockets
- From: Tom Lane <tgl at sss dot pgh dot pa dot us>
- Date: Fri, 13 Apr 2001 23:17:00 -0400
- cc: egor duda <cygwin-patches at cygwin dot com>, Jason Tishler <Jason dot Tishler at dothill dot com>, Pgsql-Ports <pgsql-ports at postgresql dot org>
- References: <Pine.LNX.4.30.0104140350200.945-100000@peter.localdomain>
Peter Eisentraut <peter_e@gmx.net> writes:
> If there's no 'w' then connect() will fail with ECONNREFUSED on Linux 2.2.
> [ and several other systems document EACCES as the error code ]
FWIW: HPUX 10.20 doesn't document this error condition at all on the
connect(2) man page, but some quick experimentation shows that indeed
write access to the socket is necessary and sufficient to make a
connection. (And EACCES is what you get if you ain't got it.)
regards, tom lane