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
F105791967: D24997.diff
Fri, Dec 20, 6:29 PM
Unknown Object (File)
Tue, Dec 10, 7:33 AM
Unknown Object (File)
Sun, Dec 8, 8:27 PM
Unknown Object (File)
Oct 22 2024, 4:38 PM
Unknown Object (File)
Oct 21 2024, 8:38 AM
Unknown Object (File)
Oct 3 2024, 10:35 PM
Unknown Object (File)
Oct 2 2024, 10:30 AM
Unknown Object (File)
Oct 1 2024, 7:06 PM
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
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 31288
Build 28929: arc lint + arc unit