From: | Thomas Munro <tmunro(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Don't set PAM_RHOST for Unix sockets. |
Date: | 2018-11-28 01:59:25 |
Message-ID: | E1gRp8P-0003lC-O4@gemulon.postgresql.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Munro | 2018-11-28 01:59:46 | pgsql: Don't set PAM_RHOST for Unix sockets. |
Previous Message | Tomas Vondra | 2018-11-28 01:04:17 | pgsql: Do not decode TOAST data for table rewrites |