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