From: Todd C. Miller Date: Tue, 13 Jul 2010 12:56:08 +0000 (-0400) Subject: Only set PAM_RHOST for Solaris, where it is needed to avoid a bug. X-Git-Tag: SUDO_1_7_4~95 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32650ae72bdf362ce08295d082b2af37681cc5dc;p=sudo Only set PAM_RHOST for Solaris, where it is needed to avoid a bug. On Linux it causes a DNS lookup via libaudit. --HG-- branch : 1.7 --- diff --git a/auth/pam.c b/auth/pam.c index d4087244c..ddffe01d9 100644 --- a/auth/pam.c +++ b/auth/pam.c @@ -110,7 +110,9 @@ pam_init(pw, promptp, auth) * 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