From 68d4c9e2ffdf9353c11a24290eb34b05941315f7 Mon Sep 17 00:00:00 2001 From: Matthew Burket Date: Thu, 23 Jan 2025 13:44:33 -0600 Subject: [PATCH] RHEL now checks no other users have primary group ID 0 --- .../root_logins/accounts_root_gid_zero/oval/shared.xml | 4 ++-- .../accounts_root_gid_zero/tests/other_user_uid_0.fail.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/linux_os/guide/system/accounts/accounts-restrictions/root_logins/accounts_root_gid_zero/oval/shared.xml b/linux_os/guide/system/accounts/accounts-restrictions/root_logins/accounts_root_gid_zero/oval/shared.xml index 1acc77321a8..b1abe12caf9 100644 --- a/linux_os/guide/system/accounts/accounts-restrictions/root_logins/accounts_root_gid_zero/oval/shared.xml +++ b/linux_os/guide/system/accounts/accounts-restrictions/root_logins/accounts_root_gid_zero/oval/shared.xml @@ -3,7 +3,7 @@ {{{ oval_metadata("The root account should have primary group of 0") }}} - {{% if 'ubuntu' in product %}} + {{% if 'ubuntu' in product or 'rhel' in product %}} {{% endif %}} @@ -24,7 +24,7 @@ 0 - {{% if 'ubuntu' in product %}} + {{% if 'ubuntu' in product or 'rhel' in product %}} diff --git a/linux_os/guide/system/accounts/accounts-restrictions/root_logins/accounts_root_gid_zero/tests/other_user_uid_0.fail.sh b/linux_os/guide/system/accounts/accounts-restrictions/root_logins/accounts_root_gid_zero/tests/other_user_uid_0.fail.sh index 483e08812eb..ba82e5ddba0 100644 --- a/linux_os/guide/system/accounts/accounts-restrictions/root_logins/accounts_root_gid_zero/tests/other_user_uid_0.fail.sh +++ b/linux_os/guide/system/accounts/accounts-restrictions/root_logins/accounts_root_gid_zero/tests/other_user_uid_0.fail.sh @@ -1,5 +1,5 @@ #!/bin/bash - +# platform = multi_platform_rhel,multi_platform_ubuntu # Remediation doesn't fix the rule, only locks passwords # of non-root accounts with uid 0. # remediation = none