From 1bf405811eb5dcbd572f94e59a2dc842d26e15c1 Mon Sep 17 00:00:00 2001 From: Pruteanu Date: Mon, 11 Mar 2024 17:26:49 +0200 Subject: [PATCH] 4Upstream: Adjusting strings used for user-shells conditionals Signed-off-by: Pruteanu Signed-off-by: z0042h2w --- tasks/section_5/cis_5.6.x.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tasks/section_5/cis_5.6.x.yml b/tasks/section_5/cis_5.6.x.yml index 8fba898..a314497 100644 --- a/tasks/section_5/cis_5.6.x.yml +++ b/tasks/section_5/cis_5.6.x.yml @@ -14,8 +14,9 @@ - item.id != "halt" - item.id != "nfsnobody" - item.uid < min_int_uid | int - - item.shell != " /bin/false" - - item.shell != " /usr/sbin/nologin" + - item.shell != "/bin/false" + - item.shell != "/usr/sbin/nologin" + - item.shell != "/sbin/nologin" loop_control: label: "{{ item.id }}" @@ -31,8 +32,9 @@ - item.id != "root" - item.id != "nfsnobody" - item.uid < min_int_uid | int - - item.shell != " /bin/false" - - item.shell != " /usr/sbin/nologin" + - item.shell != "/bin/false" + - item.shell != "/usr/sbin/nologin" + - item.shell != "/sbin/nologin" loop_control: label: "{{ item.id }}" when: