Skip to content

Commit

Permalink
Fix display_login_attempts
Browse files Browse the repository at this point in the history
Due to the change in Bash Jinja macros introduced by
ComplianceAsCode#12600 the regular
expressions in Bash remediation in rule `display_login_attempts` have
been broken. The escaping of the `control` parameter is now done inside
`bash_ensure_pam_module_option` and therefore the bash remediation
should pass the `control` parameter without escaping.
  • Loading branch information
jan-cerny committed Nov 13, 2024
1 parent 54959c1 commit 7f4ef13
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{{%- elif "sle" in product %}}
{{%- set control = "optional" %}}
{{%- else %}}
{{%- set control = "\[default=1\]" %}}
{{%- set control = "[default=1]" %}}
{{%- endif %}}

{{{ bash_pam_lastlog_enable_showfailed(pam_lastlog_path, control, after_match) }}}

0 comments on commit 7f4ef13

Please sign in to comment.