pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Don't set PAM_RHOST for Unix sockets.
4+ messages / 1 participants
[nested] [flat]

* pgsql: Don't set PAM_RHOST for Unix sockets.
@ 2018-11-28 01:59 Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 4+ messages in thread

From: Thomas Munro @ 2018-11-28 01:59 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0f9cdd7dca694d487ab663d463b308919f591c02

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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: Don't set PAM_RHOST for Unix sockets.
@ 2018-11-28 01:59 Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 4+ messages in thread

From: Thomas Munro @ 2018-11-28 01:59 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/0640d9517e7e6804851a5f0d2520d51fc6faf014

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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: Don't set PAM_RHOST for Unix sockets.
@ 2018-11-28 02:00 Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 4+ messages in thread

From: Thomas Munro @ 2018-11-28 02:00 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: Don't set PAM_RHOST for Unix sockets.
@ 2018-11-28 02:00 Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 4+ messages in thread

From: Thomas Munro @ 2018-11-28 02:00 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/63d8350665c820203fd48e5690af01c33801fe46

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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2018-11-28 02:00 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-11-28 01:59 pgsql: Don't set PAM_RHOST for Unix sockets. Thomas Munro <tmunro@postgresql.org>
2018-11-28 01:59 pgsql: Don't set PAM_RHOST for Unix sockets. Thomas Munro <tmunro@postgresql.org>
2018-11-28 02:00 pgsql: Don't set PAM_RHOST for Unix sockets. Thomas Munro <tmunro@postgresql.org>
2018-11-28 02:00 pgsql: Don't set PAM_RHOST for Unix sockets. Thomas Munro <tmunro@postgresql.org>

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