]> granicus.if.org Git - postgresql/commit
Don't set PAM_RHOST for Unix sockets.
authorThomas Munro <tmunro@postgresql.org>
Wed, 28 Nov 2018 01:00:57 +0000 (14:00 +1300)
committerThomas Munro <tmunro@postgresql.org>
Wed, 28 Nov 2018 01:20:07 +0000 (14:20 +1300)
commit63d8350665c820203fd48e5690af01c33801fe46
treeb58f88b42f6ce17f4971746bc58bb6e8c0c8b7e8
parentb86d148ae339be7937ba8aa707de6905314a78c4
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
src/backend/libpq/auth.c