]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sshd: make getpwclass wrapper MON_ISAUTH not MON_AUTH
authorEd Maste <emaste@FreeBSD.org>
Wed, 20 Nov 2019 16:30:37 +0000 (16:30 +0000)
committerEd Maste <emaste@FreeBSD.org>
Wed, 20 Nov 2019 16:30:37 +0000 (16:30 +0000)
commite8c56fba2926cfdaf7759edf3d53af8823db9dbc
tree5682f8744167d0cefa57a1c757b937f2310cdf61
parent53c772bbd7bb74423e9eda16701a711dd793dede
sshd: make getpwclass wrapper MON_ISAUTH not MON_AUTH

In r339216 a privsep wrapper was added for login_getpwclass to address
PR 231172.  Unfortunately the change used the MON_AUTH flag in the
wrapper, and MON_AUTH includes MON_AUTHDECIDE which triggers an
auth_log() on each invocation.  getpwclass() does not participate in the
authentication decision, so should be MON_ISAUTH instead.

PR: 234793
Submitted by: Henry Hu
Reviewed by: Yuichiro NAITO
MFC after: 1 week
crypto/openssh/monitor.c