NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/42540: /usr/bin/login does not log normal logins, does not log IP addresses



On Dec 29, 10:44am, christos%zoulas.com@localhost (Christos Zoulas) wrote:
-- Subject: Re: bin/42540: /usr/bin/login does not log normal logins, does no

| Yes, because it is only being passed in the hostname; it does not
| lookup anything. Even the hostname passed can be bogus (although
| one presumes that the daemon that forks login is trusted).
| 
| So your desired behavior is to use getpeername(2) to determine if
| the login is remote and always syslog(LOG_INFO the infomation?

Now that I looked more into it, it will use getpeername(2) to fill in
the address in wtmpx. Isn't that good enough? (looking through the wtmpx
records?)

christos


Home | Main Index | Thread Index | Old Index