]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r354897: sshd: make getpwclass wrapper MON_ISAUTH not MON_AUTH
authorEd Maste <emaste@FreeBSD.org>
Thu, 28 Nov 2019 02:18:19 +0000 (02:18 +0000)
committerEd Maste <emaste@FreeBSD.org>
Thu, 28 Nov 2019 02:18:19 +0000 (02:18 +0000)
commit6edd26e7711af723b7d6c93eb3aafab008f145bb
treeaee46ce59d55c5a1135819c43c1ea58afcadc07d
parent9667fd148e25ddd53d076ff521d624d0624256ce
MFC r354897: 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