>From 439e2dc6dd352fbbcaf878fc3008903d5374db76 Mon Sep 17 00:00:00 2001 From: Shawn Wells Date: Fri, 27 Dec 2013 00:51:15 -0500 Subject: [PATCH 15/31] Moved file_permissions_etc_shadow to shared/ - Tested on RHEL7, updated CPE, moved to shared/ --- .../6/input/checks/file_permissions_etc_shadow.xml | 47 +--------------------- .../7/input/checks/file_permissions_etc_shadow.xml | 1 + shared/oval/file_permissions_etc_shadow.xml | 47 ++++++++++++++++++++++ 3 files changed, 49 insertions(+), 46 deletions(-) mode change 100644 => 120000 RHEL/6/input/checks/file_permissions_etc_shadow.xml create mode 120000 RHEL/7/input/checks/file_permissions_etc_shadow.xml create mode 100644 shared/oval/file_permissions_etc_shadow.xml diff --git a/RHEL/6/input/checks/file_permissions_etc_shadow.xml b/RHEL/6/input/checks/file_permissions_etc_shadow.xml deleted file mode 100644 index 136ab7a..0000000 --- a/RHEL/6/input/checks/file_permissions_etc_shadow.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - Verify /etc/shadow Permissions - - Red Hat Enterprise Linux 6 - - This test makes sure that /etc/shadow is owned by 0, group owned by 0, and has mode 0000. If - the target file or directory has an extended ACL then it will fail the mode check. - - - - - - - - - - - - - - /etc/shadow - - - 0 - - - 0 - - - false - false - false - false - false - false - false - false - false - false - false - false - - diff --git a/RHEL/6/input/checks/file_permissions_etc_shadow.xml b/RHEL/6/input/checks/file_permissions_etc_shadow.xml new file mode 120000 index 0000000..c9178ca --- /dev/null +++ b/RHEL/6/input/checks/file_permissions_etc_shadow.xml @@ -0,0 +1 @@ +../../../../shared/oval/file_permissions_etc_shadow.xml \ No newline at end of file diff --git a/RHEL/7/input/checks/file_permissions_etc_shadow.xml b/RHEL/7/input/checks/file_permissions_etc_shadow.xml new file mode 120000 index 0000000..c9178ca --- /dev/null +++ b/RHEL/7/input/checks/file_permissions_etc_shadow.xml @@ -0,0 +1 @@ +../../../../shared/oval/file_permissions_etc_shadow.xml \ No newline at end of file diff --git a/shared/oval/file_permissions_etc_shadow.xml b/shared/oval/file_permissions_etc_shadow.xml new file mode 100644 index 0000000..602ff0f --- /dev/null +++ b/shared/oval/file_permissions_etc_shadow.xml @@ -0,0 +1,47 @@ + + + + + Verify /etc/shadow Permissions + + Red Hat Enterprise Linux 6 + Red Hat Enterprise Linux 7 + + This test makes sure that /etc/shadow is owned by 0, group owned by 0, and has mode 0000. If + the target file or directory has an extended ACL then it will fail the mode check. + + + + + + + + + + + + + + /etc/shadow + + + 0 + + + 0 + + + false + false + false + false + false + false + false + false + false + false + false + false + + -- 1.8.3.1