* src/login.c: Added comment to make sure PAM_RHOST or PAM_TTY do
not get set to unsanitized values.
This commit is contained in:
@@ -657,6 +657,9 @@ int main (int argc, char **argv)
|
||||
* hostname & tty are either set to NULL or their correct values,
|
||||
* depending on how much we know. We also set PAM's fail delay to
|
||||
* ours.
|
||||
*
|
||||
* PAM_RHOST and PAM_TTY are used for authentication, only use
|
||||
* information coming from login or from the caller (e.g. no utmp)
|
||||
*/
|
||||
retcode = pam_set_item (pamh, PAM_RHOST, hostname);
|
||||
PAM_FAIL_CHECK;
|
||||
|
Reference in New Issue
Block a user