>From 154b1aed6de0628abb37c7848cd174a1175cdef2 Mon Sep 17 00:00:00 2001 From: Shawn Wells Date: Wed, 17 Apr 2013 05:47:18 -0400 Subject: [PATCH] Ticket 396: Created OVAL for file_ownership_library_dirs - Created OVAL - Updated XCCDF rule to reflect Testing: [root@rhel6 checks]# chown shawn /lib/modules/2.6.32-* [root@rhel6 checks]# ./testcheck.py file_ownership_library_dirs.xml Evaluating with OVAL tempfile : /tmp/file_ownership_etc_skelaqFW7F.xml Definition oval:scap-security-guide.testing:def:106: false Evaluation done. [root@rhel6 checks]# chown root /lib/modules/2.6.32-* [root@rhel6 checks]# ./testcheck.py file_ownership_library_dirs.xml Evaluating with OVAL tempfile : /tmp/file_ownership_etc_skelOvly_8.xml Definition oval:scap-security-guide.testing:def:106: true Evaluation done. --- RHEL6/input/checks/file_ownership_library_dirs.xml | 140 ++++++++++++++++++++ RHEL6/input/system/permissions/files.xml | 2 +- 2 files changed, 141 insertions(+), 1 deletions(-) create mode 100644 RHEL6/input/checks/file_ownership_library_dirs.xml diff --git a/RHEL6/input/checks/file_ownership_library_dirs.xml b/RHEL6/input/checks/file_ownership_library_dirs.xml new file mode 100644 index 0000000..e68ec20 --- /dev/null +++ b/RHEL6/input/checks/file_ownership_library_dirs.xml @@ -0,0 +1,140 @@ + + + + Verify that Shared Library Files Have Root Ownership + + Red Hat Enterprise Linux 6 + + Checks that /lib, /lib64, /usr/lib, /usr/lib64, /lib/modules, and objects therein, are owned by root + + + + + + + + + + + + + + + + + + + + /lib + + state_owner_not_root + + + + + /lib + ^.*$ + state_owner_not_root + + + + + + + + + + + + + + + /lib64 + + state_owner_not_root + + + + + /lib64 + ^.*$ + state_owner_not_root + + + + + + + + + + + + + + + /usr/lib + + state_owner_not_root + + + + + /usr/lib + ^.*$ + state_owner_not_root + + + + + + + + + + + + + + + /usr/lib64 + + state_owner_not_root + + + + + /usr/lib64 + ^.*$ + state_owner_not_root + + + + + + + + + + + + + + + /lib/modules + + state_owner_not_root + + + + + /lib/modules + ^.*$ + state_owner_not_root + + + + + 0 + + diff --git a/RHEL6/input/system/permissions/files.xml b/RHEL6/input/system/permissions/files.xml index 6a9c707..21af4ea 100644 --- a/RHEL6/input/system/permissions/files.xml +++ b/RHEL6/input/system/permissions/files.xml @@ -251,9 +251,9 @@ space of processes (including privileged ones) or of the kernel itself at runtime. Proper ownership is necessary to protect the integrity of the system. + - Verify that System Executables Have Restrictive Permissions -- 1.7.1