This adds a local_users_only option to pam_faillock to apply only tracking failed user authentication attempts for local users.
@tmraz for your review.
pam_strerror is not for printing errno errors. Just use "unable to open %s: %m", PATH_PASSWD);
Again just use %m.
Please also rebase and force-push.
rebased onto 94feee2f82b48d1ab61cb060274e4b7c14c3952e
Thanks @tmraz! Fixed and rebased.
It does not look like it is properly rebased onto current master HEAD.
rebased onto 9a2b37a4e68b3af02b3c91fde1719c18175dcc63
@tmraz Ooops... missed the upstream changes in the master branch. Sorry about that. Updated.
Pull-Request has been merged by tmraz
Merged, thank you for the PR.
This adds a local_users_only option to pam_faillock to apply only tracking failed user authentication attempts for local users.