From 9d2b4e090aebbac8a931e15b85b63508ff03c4ec Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Mon, 11 Nov 2024 14:34:31 +0000 Subject: [PATCH] updated to capture great options #39 Signed-off-by: Mark Bolwell --- section_5/cis_5.3/cis_5.3.3.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/section_5/cis_5.3/cis_5.3.3.yml b/section_5/cis_5.3/cis_5.3.3.yml index 0803a0c..f828f1f 100644 --- a/section_5/cis_5.3/cis_5.3.3.yml +++ b/section_5/cis_5.3/cis_5.3.3.yml @@ -3,11 +3,11 @@ command: log_sudoers_d: title: 5.3.3 | Ensure sudo log file exists | sudoers.d - exec: 'grep -Ec "^Defaults.*logfile=\"/var/log/.*\.log\"" /etc/sudoers /etc/sudoers.d/*' + exec: 'grep -Ec "^Defaults.*logfile=(\"|)/var/log/.*\.log(\"|)" /etc/sudoers /etc/sudoers.d/*' exit-status: lt: 3 stdout: - - '/[1-99]/' + - '/.*:[1-99]/' meta: server: 1 workstation: 1