feat: handle PAM password policy changes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user