From e5e2aeb1b09b3c3ed9905a1e8c909ee11db84b76 Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Wed, 30 Oct 2024 10:58:23 +0000 Subject: [PATCH] Issue #38 thanks to levaillx Signed-off-by: Mark Bolwell --- section_1/cis_1.8/cis_1.8.2.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/section_1/cis_1.8/cis_1.8.2.yml b/section_1/cis_1.8/cis_1.8.2.yml index ed63c0a..35c32a0 100644 --- a/section_1/cis_1.8/cis_1.8.2.yml +++ b/section_1/cis_1.8/cis_1.8.2.yml @@ -1,3 +1,5 @@ +--- + {{ if .Vars.rhel9cis_gui }} {{ if .Vars.rhel9cis_rule_1_8_2 }} command: @@ -7,9 +9,8 @@ command: exit-status: 0 stdout: - '/^user-db:user/' - - '/^system-db:user/' + - '/^system-db:gdm/' - '/^file-db:\/usr\/share\/gdm\/greeter-dconf-defaults/' - - "/^banner-message-text=\'{{ .Vars.rhel9cis_warning_banner }}\'/" meta: server: 1 workstation: 1 @@ -28,9 +29,9 @@ command: - 0 - 1 stdout: - - '/^banner-message-enable=true/' - - '!/^banner-message-enable=false/' - - "/^banner-message-text=\'{{ .Vars.rhel9cis_warning_banner }}\'/" + - '/.*:banner-message-enable=true/' + - '!/.*:banner-message-enable=false/' + - '/.*:banner-message-text=.{{ .Vars.rhel9cis_warning_banner }}./' meta: server: 1 workstation: 1