]> granicus.if.org Git - linux-pam/commit
pam_access: support parsing files in /etc/security/access.d/*.conf
authorTomas Mraz <tmraz@fedoraproject.org>
Wed, 31 May 2017 08:27:28 +0000 (10:27 +0200)
committerTomas Mraz <tmraz@fedoraproject.org>
Wed, 31 May 2017 08:27:28 +0000 (10:27 +0200)
commit7d0c508a52ebc9c702e1b6e66f46e4a6dc028c4a
tree8baa315fe88b9602c43e2369c3c011ef10bc18c2
parent5a6a2d169c06cd7e1959c34261d637c3f1c1f573
pam_access: support parsing files in /etc/security/access.d/*.conf

* modules/pam_access/pam_access.c (login_access): Return NOMATCH if
there was no match in the parsed file.
(pam_sm_authenticate): Add glob() call to go through the ACCESS_CONF_GLOB
subdirectory and call login_access() on the individual files matched.
* modules/pam_access/pam_access.8.xml: Document the addition.
* modules/pam_access/Makefile.am: Add ACCESS_CONF_GLOB definition.
modules/pam_access/Makefile.am
modules/pam_access/pam_access.8.xml
modules/pam_access/pam_access.c