From 7f4ef13fd5db2f7ebd819d23c168da416d9e7ed5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C4=8Cern=C3=BD?= Date: Wed, 13 Nov 2024 09:43:44 +0100 Subject: [PATCH] Fix display_login_attempts Due to the change in Bash Jinja macros introduced by https://github.com/ComplianceAsCode/content/pull/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. --- .../accounts/accounts-pam/display_login_attempts/bash/shared.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/bash/shared.sh b/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/bash/shared.sh index 891d516d571..6c9c1e7698a 100644 --- a/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/bash/shared.sh +++ b/linux_os/guide/system/accounts/accounts-pam/display_login_attempts/bash/shared.sh @@ -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) }}}