Page MenuHomeFreeBSD

Don't log normal login_getpwclass(3) result.
ClosedPublic

Authored by delphij on May 25 2020, 9:43 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 17, 1:58 PM
Unknown Object (File)
Feb 23 2024, 6:10 PM
Unknown Object (File)
Feb 23 2024, 6:02 PM
Unknown Object (File)
Feb 23 2024, 6:02 PM
Unknown Object (File)
Feb 23 2024, 5:45 PM
Unknown Object (File)
Dec 22 2023, 10:46 PM
Unknown Object (File)
Dec 21 2023, 8:52 AM
Unknown Object (File)
Oct 10 2023, 9:53 AM
Subscribers

Details

Summary

Don't log normal login_getpwclass(3) result.

The logging was introduced in rS314527 but doesn't appear to be useful
for regular operation, and as the result, for users with no class set
(very common) the administrator would see a message like this in their
auth.log:

sshd[44251]: user root login class [preauth]

(note that the class was "" because that's what's typically configured
for most users; we would get 'default' if lc->lc_class is chosen)

Remove this log as it can be annoying as the lookup happen before
authentication and repeats, and our code is not acting upon lc_class
or pw_class directly anyways.

Test Plan

login and observe logs

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable