Re: Spoofing as the postmaster - Mailing list pgsql-hackers

From Marko Kreen
Subject Re: Spoofing as the postmaster
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: Spoofing as the postmaster  (Peter Eisentraut <[email protected]>)
Responses Re: Spoofing as the postmaster
List pgsql-hackers
On 12/22/07, Peter Eisentraut <[email protected]> wrote:
> Bruce Momjian wrote:
> > The fundamental problem is that because we don't require root, any user's
> > postmaster or pretend postmaster is as legitimate as anyone else's. SSL
> > certificates add legitimacy checks for TCP, but not for unix domain
> > sockets.
>
> Wouldn't SSL work over Unix-domain sockets as well?  The API only deals with
> file descriptors.

For Unix sockets it should be enough to just check server
process uid, no?

(FYI - Debian already puts unix socket to directory writable
only to postgres user, so they dont have the problem.  Maybe
we should encourage distros to move away from /tmp?)

-- 
marko


pgsql-hackers by date:

Previous
From: "Mike Rylander"
Date:
Subject: Re: Spoofing as the postmaster
Next
From: Tom Lane
Date:
Subject: Re: Spoofing as the postmaster