Skip to content

Commit

Permalink
add an account_password_pam_faillock template
Browse files Browse the repository at this point in the history
rewrite accounts_passwords_pam_faillock_interval and
accounts_passwords_pam_faillock_unlock_time to use this new template.
  • Loading branch information
a-skr committed May 5, 2024
1 parent 4bb30c3 commit f525060
Show file tree
Hide file tree
Showing 38 changed files with 633 additions and 1,273 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,13 @@ warnings:
be shown in the remediation report.
If the system supports the <tt>/etc/security/faillock.conf</tt> file, the pam_faillock
parameters should be defined in <tt>faillock.conf</tt> file.
template:
name: pam_account_password_faillock
vars:
prm_name: fail_interval
prm_regex_conf: ^[\s]*fail_interval[\s]*=[\s]*([0-9]+)
prm_regex_pamd: ^[\s]*auth[\s]+.+[\s]+pam_faillock.so[\s]+[^\n]*fail_interval=([0-9]+)
ext_variable: var_accounts_passwords_pam_faillock_fail_interval
description: The number of allowed failed logins should be set correctly.
variable_lower_bound: use_ext_variable

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit f525060

Please sign in to comment.