#!/bin/bash
# packages = authselect,pam
# platform = multi_platform_fedora,Red Hat Enterprise Linux 8,Red Hat Enterprise Linux 9

source common.sh

for file in ${pam_files[@]}; do
    echo "auth required pam_faillock.so preauth  dir=/var/log/faillock" >> "$CUSTOM_PROFILE_DIR/$file"
    echo "auth required pam_faillock.so authfail dir=/var/log/faillock" >> "$CUSTOM_PROFILE_DIR/$file"
done

authselect apply-changes
