]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r358065:
authorCy Schubert <cy@FreeBSD.org>
Thu, 19 Mar 2020 03:29:46 +0000 (03:29 +0000)
committerCy Schubert <cy@FreeBSD.org>
Thu, 19 Mar 2020 03:29:46 +0000 (03:29 +0000)
commitfd142bb5325aac144f6d970b9e7b5864059e8993
tree5920d052f7e565d5c80061dcbcdbeff093115a98
parent47f685307550b9f07bf6b5288d7370278dca471d
MFC r358065:

The words ALL, LOCAL, and EXCEPT have special meaning and are documented
as in the login.access(5) man page. However strcasecmp() is used to compare
for these special strings. Because of this User accounts and groups with
the corresponding lowercase names are misintrepreted to have special
whereas they should not.

This commit fixes this, conforming to the man page and to how the Linux
pam_access(8) handles these special words.

Approved by: des (implicit, blanket)
lib/libpam/modules/pam_login_access/login_access.c