* 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:
parent
d2a822fe39
commit
8156c3b0be
@ -1,3 +1,8 @@
|
||||
2009-04-19 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
* src/login.c: Added comment to make sure PAM_RHOST or PAM_TTY do
|
||||
not get set to unsanitized values.
|
||||
|
||||
2009-04-17 Paul Szabo <psz@maths.usyd.edu.au>
|
||||
|
||||
* NEWS, src/login.c: Do not trust the current utmp entry's ut_line
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user