pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Don't set PAM_RHOST for Unix sockets.
Date: Wed, 28 Nov 2018 02:00:04 +0000
Message-ID: <E1gRp92-0003mf-SB@gemulon.postgresql.org> (raw)

Don't set PAM_RHOST for Unix sockets.

Since commit 2f1d2b7a we have set PAM_RHOST to "[local]" for Unix
sockets.  This caused Linux PAM's libaudit integration to make DNS
requests for that name.  It's not exactly clear what value PAM_RHOST
should have in that case, but it seems clear that we shouldn't set it
to an unresolvable name, so don't do that.

Back-patch to 9.6.  Bug #15520.

Author: Thomas Munro
Reviewed-by: Peter Eisentraut
Reported-by: Albert Schabhuetl
Discussion: https://postgr.es/m/15520-4c266f986998e1c5%40postgresql.org

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/96ed0b87045486ca0465f4ea444515754d0915a0

Modified Files
--------------
src/backend/libpq/auth.c | 50 +++++++++++++++++++++++++++++-------------------
1 file changed, 30 insertions(+), 20 deletions(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1gRp92-0003mf-SB@gemulon.postgresql.org>
Permalink:  ../E1gRp92-0003mf-SB@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gRp92-0003mf-SB@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tmunro@postgresql.org
  Subject: Re: pgsql: Don't set PAM_RHOST for Unix sockets.
  In-Reply-To: <E1gRp92-0003mf-SB@gemulon.postgresql.org>
  References: <E1gRp92-0003mf-SB@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox