Mercurial > repos > sudo
changeset 5761:1e10105ade5b
Only set PAM_RHOST for Solaris, where it is needed to avoid a bug.
On Linux it causes a DNS lookup via libaudit.
| author | Todd C. Miller <Todd.Miller@courtesan.com> |
|---|---|
| date | Tue, 13 Jul 2010 08:56:31 -0400 |
| parents | ef86ee557b5b |
| children | fd6be19e5bc2 |
| files | plugins/sudoers/auth/pam.c |
| diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/sudoers/auth/pam.c Tue Jul 13 08:52:50 2010 -0400 +++ b/plugins/sudoers/auth/pam.c Tue Jul 13 08:56:31 2010 -0400 @@ -106,7 +106,9 @@ * We set PAM_RHOST to avoid a bug in Solaris 7 and below. */ (void) pam_set_item(pamh, PAM_RUSER, user_name); +#ifdef __sun__ (void) pam_set_item(pamh, PAM_RHOST, user_host); +#endif /* * Some versions of pam_lastlog have a bug that
