Skip site navigation (1) Skip section navigation (2)

Re: Re: improving security of AF_UNIX sockets

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
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>
Subject: Re: Re: improving security of AF_UNIX sockets
Date: 2001-04-14 03:17:00
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-ports
Peter Eisentraut <peter_e(at)gmx(dot)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

In response to

pgsql-ports by date

Next:From: Matthieu Guyonnet-DulucDate: 2001-04-14 08:41:54
Subject: running
Previous:From: Peter EisentrautDate: 2001-04-14 02:08:26
Subject: Re: improving security of AF_UNIX sockets

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group