From 72cea18bfe42d1e227627c4799d5479382073614 Mon Sep 17 00:00:00 2001 From: Marcus Burghardt Date: Thu, 30 Nov 2023 13:02:36 +0100 Subject: [PATCH] Refactor OVAL in dir_perms_world_writable_system_owned Adopted the create_local_mount_points_list macro. Simplified the test logic by removing the "negate" attribute. --- .../oval/shared.xml | 50 +++++++++++++------ 1 file changed, 34 insertions(+), 16 deletions(-) diff --git a/linux_os/guide/system/permissions/files/dir_perms_world_writable_system_owned/oval/shared.xml b/linux_os/guide/system/permissions/files/dir_perms_world_writable_system_owned/oval/shared.xml index 8b03bfe0ec04..52ca19abd2ba 100644 --- a/linux_os/guide/system/permissions/files/dir_perms_world_writable_system_owned/oval/shared.xml +++ b/linux_os/guide/system/permissions/files/dir_perms_world_writable_system_owned/oval/shared.xml @@ -1,22 +1,40 @@ - - {{{ oval_metadata("All world writable directories should be owned by a system user.") }}} - - + + {{{ oval_metadata("All world writable directories should be owned by a system account.") }}} + + - - - - - - - / - - state_uid_is_user_and_world_writable - - - {{{ auid }}} + + + {{{ uid_min }}} true + + {{%- set var_local_mount_points = "var_" ~ rule_id ~ "_local_mountpoints" -%}} + {{{ create_local_mount_points_list(var_local_mount_points) }}} + + + + + + + state_dir_perms_world_writable_system_owned + + + + +