feat: handle PAM password policy changes

This commit is contained in:
2026-09-26 01:50:02 +05:30
parent 9492dbd7c9
commit 83345a1842
12 changed files with 697 additions and 57 deletions

View File

@@ -54,6 +54,11 @@ if need_command ldconfig && ldconfig -p 2>/dev/null | grep -q 'libpam\.so'; then
else
skip "PAM runtime library is unavailable"
fi
if [ -n "$binary" ] && need_command nm && nm -D "$binary" 2>/dev/null | grep -q 'pam_chauthtok'; then
pass "PAM password-change entry point is linked"
else
skip "PAM password-change entry point could not be inspected"
fi
if [ -r /etc/pam.d/latchd ]; then
pass "latchd PAM policy is installed"
else