security-misc/usr/libexec/security-misc
DMHalford 91a76db66b
Prevent erroneous "Login blocked after [negative number] attempts" errors
For root, faillock appears to always* return an empty string (i.e. no table headers are present), yielding a zero-initialized pam_faillock_output_count and thus resulting in the calculation of a negative failed_login_counter value.

This can cause erroneous errors of the form "ERROR: Login blocked after [negative number] attempts" during sudo-ing and screen unlocking.

This commit modifies the initialization of failed_login_counter such that it cannot be negative and prevents the display of these incorrect warnings.

* Only rudimentary local tests were conducted
2025-05-15 15:42:50 -04:00
..
apt-get-update fix 2025-04-19 13:24:17 -04:00
apt-get-update-sanity-test copyright 2024-12-31 13:26:21 -05:00
askpass copyright 2024-12-31 13:26:21 -05:00
disable-kernel-module-loading copyright 2024-12-31 13:26:21 -05:00
echo-path copyright 2024-12-31 13:26:21 -05:00
hide-hardware-info copyright 2024-12-31 13:26:21 -05:00
mmap-rnd-bits copyright 2024-12-31 13:26:21 -05:00
pam-abort-on-locked-password comments 2025-04-08 06:53:08 -04:00
pam-info Prevent erroneous "Login blocked after [negative number] attempts" errors 2025-05-15 15:42:50 -04:00
pam_faillock_not_if_x copyright 2024-12-31 13:26:21 -05:00
pam_only_if_login copyright 2024-12-31 13:26:21 -05:00
pam_only_if_su fix: apply PAM wheal only to su PAM service 2025-01-06 04:24:44 -05:00
panic-on-oops copyright 2024-12-31 13:26:21 -05:00
permission-lockdown copyright 2024-12-31 13:26:21 -05:00
remove-system.map copyright 2024-12-31 13:26:21 -05:00
virusforget copyright 2024-12-31 13:26:21 -05:00