Re: [HACKERS] Another crack at doing a Win32

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: pgsql-hackers-win32(at)postgresql(dot)org
Subject: Re: [HACKERS] Another crack at doing a Win32
Date: 2004-03-05 16:13:40
Message-ID: 200403051613.i25GDeg13256@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-hackers-win32 pgsql-patches

Andrew Dunstan wrote:
> How does this sound?
>
> . if -i/tcpip_socket is not set, then bind to localhost
> . if -i/tcpip_socket is set, and virtual_host is not set, behave as now
> (i.e. bind to all addresses)
> . if -i/tcpip_socket is set, and virtual_host is set, bind to all but
> immediately close connections where the local address is not either
> localhost or the virtual_host.
>
> That seems to me to get as close as reasonably possible to the Unix
> behaviour. I don't think that always allowing localhost connections on
> Windows is a big security risk.
>
> Also, what is the default connection mode of psql? It should probably be
> equivalent to "-h localhost", shouldn't it?

Now that is something I had not thought of. Seems we can assume a Win32
psql can never use unix domain sockets, so defaulting that to localhost
is a good solution too.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message scott.marlowe 2004-03-05 16:47:26 Re: [HACKERS] Tablespaces
Previous Message Andrew Dunstan 2004-03-05 15:41:12 Re: [HACKERS] Another crack at doing a Win32

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message scott.marlowe 2004-03-05 16:47:26 Re: [HACKERS] Tablespaces
Previous Message Andrew Dunstan 2004-03-05 15:41:12 Re: [HACKERS] Another crack at doing a Win32

Browse pgsql-patches by date

  From Date Subject
Next Message Fabien COELHO 2004-03-05 16:15:04 Re: notice about costly ri checks (2)
Previous Message Andrew Dunstan 2004-03-05 15:41:12 Re: [HACKERS] Another crack at doing a Win32