<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Consolas","serif";
        color:black;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>It looks like I made a typo in one of the criteria that caused this issue. I fixed that and resubmitted.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> scap-security-guide-bounces@lists.fedorahosted.org [mailto:scap-security-guide-bounces@lists.fedorahosted.org] <b>On Behalf Of </b>Shawn Wells<br><b>Sent:</b> Tuesday, October 01, 2013 11:24 AM<br><b>To:</b> scap-security-guide@lists.fedorahosted.org<br><b>Subject:</b> Re: [PATCH] Added OVAL content for the file_ownership_binary_dirs rule as the file file_ownership_binary_dirs.xml and added the oval id to the corresponding XCCDF content in files.xml<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal><br>You're encountering the same issue I did... perhaps I'm the LCD here... ;)<br><br>Check out results for /usr/local/bin below. I ran the following to ensure everything is root before testing:<br><br><o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>[shawn@SSG-RHEL6 checks]$ sudo bash<br>[root@SSG-RHEL6 checks]# DIRS=&quot;/bin /usr/bin /usr/local/bin /sbin /usr/sbin /usr/local/sbin&quot;<br>[root@SSG-RHEL6 checks]# for dirPath in $DIRS; do<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; find $dirPath \! -user root -exec chown root '{}' \;<br>&gt;&nbsp;&nbsp; done<br>[root@SSG-RHEL6 checks]# exit<br>exit<br>[shawn@SSG-RHEL6 checks]$ ./testcheck.py file_ownership_binary_dirs.xml <br>Evaluating with OVAL tempfile : /tmp/file_ownership_binary_dirsU1mqUp.xml<br>Writing results to : /tmp/file_ownership_binary_dirsU1mqUp.xml-results<br>Definition oval:scap-security-guide.testing:def:261: true<br>Evaluation done.<o:p></o:p></p><p class=MsoNormal><br><br><br><br>On 10/1/13 10:06 AM, Caleb Cooper wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><pre><o:p>&nbsp;</o:p></pre><pre>Signed-off-by: Caleb Cooper <a href="mailto:coopercd@ornl.gov">&lt;coopercd@ornl.gov&gt;</a><o:p></o:p></pre><pre>---<o:p></o:p></pre><pre> RHEL6/input/checks/file_ownership_binary_dirs.xml |  163 +++++++++++++++++++++<o:p></o:p></pre><pre> 1 files changed, 163 insertions(+), 0 deletions(-)<o:p></o:p></pre><pre> create mode 100644 RHEL6/input/checks/file_ownership_binary_dirs.xml<o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre><pre>diff --git a/RHEL6/input/checks/file_ownership_binary_dirs.xml b/RHEL6/input/checks/file_ownership_binary_dirs.xml<o:p></o:p></pre><pre>new file mode 100644<o:p></o:p></pre><pre>index 0000000..b787191<o:p></o:p></pre><pre>--- /dev/null<o:p></o:p></pre><pre>+++ b/RHEL6/input/checks/file_ownership_binary_dirs.xml<o:p></o:p></pre><pre>@@ -0,0 +1,163 @@<o:p></o:p></pre><pre>+&lt;def-group&gt;<o:p></o:p></pre><pre>+  &lt;definition class=&quot;compliance&quot; id=&quot;file_ownership_binary_dirs&quot; version=&quot;1&quot;&gt;<o:p></o:p></pre><pre>+    &lt;metadata&gt;<o:p></o:p></pre><pre>+      &lt;title&gt;Verify that System Executables Have Root Ownership&lt;/title&gt;<o:p></o:p></pre><pre>+      &lt;affected family=&quot;unix&quot;&gt;<o:p></o:p></pre><pre>+        &lt;platform&gt;Red Hat Enterprise Linux 6&lt;/platform&gt;<o:p></o:p></pre><pre>+      &lt;/affected&gt;<o:p></o:p></pre><pre>+      &lt;description&gt;Checks that /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin, /usr/local/sbin and objects therein, are owned by root&lt;/description&gt;<o:p></o:p></pre><pre>+      &lt;reference source=&quot;swells&quot; ref_id=&quot;20130914&quot; ref_url=&quot;test_attestation&quot; /&gt;<o:p></o:p></pre><pre>+    &lt;/metadata&gt;<o:p></o:p></pre><pre>+    &lt;criteria operator=&quot;AND&quot;&gt;<o:p></o:p></pre><pre>+      &lt;criterion test_ref=&quot;test_ownership_bin_dir&quot; /&gt;<o:p></o:p></pre><pre>+      &lt;criterion test_ref=&quot;test_ownership_sbin_dir&quot; /&gt;<o:p></o:p></pre><pre>+      &lt;criterion test_ref=&quot;test_ownership_usr_bin_dir&quot; /&gt;<o:p></o:p></pre><pre>+      &lt;criterion test_ref=&quot;test_ownership_usr_sbin_dir&quot; /&gt;<o:p></o:p></pre><pre>+      &lt;criterion test_ref=&quot;test_ownership_usr_local_bin_dir&quot; /&gt;<o:p></o:p></pre><pre>+      &lt;criterion test_ref=&quot;test_ownership_usr_local_bin_dir&quot; /&gt;<o:p></o:p></pre><pre>+      &lt;criterion test_ref=&quot;test_ownership_bin_files&quot; /&gt;<o:p></o:p></pre><pre>+      &lt;criterion test_ref=&quot;test_ownership_sbin_files&quot; /&gt;<o:p></o:p></pre><pre>+      &lt;criterion test_ref=&quot;test_ownership_usr_bin_files&quot; /&gt;<o:p></o:p></pre><pre>+      &lt;criterion test_ref=&quot;test_ownership_usr_sbin_files&quot; /&gt;<o:p></o:p></pre><pre>+      &lt;criterion test_ref=&quot;test_ownership_usr_local_sbin_files&quot; /&gt;<o:p></o:p></pre><pre>+      &lt;criterion test_ref=&quot;test_ownership_usr_local_sbin_files&quot; /&gt;<o:p></o:p></pre><pre>+    &lt;/criteria&gt;<o:p></o:p></pre><pre>+  &lt;/definition&gt;<o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+  &lt;unix:file_test  check=&quot;all&quot; check_existence=&quot;none_exist&quot; comment=&quot;/bin directories uid root&quot; id=&quot;test_ownership_bin_dir&quot; version=&quot;1&quot;&gt;<o:p></o:p></pre><pre>+    &lt;unix:object object_ref=&quot;file_ownership_object_bin_dir&quot; /&gt;<o:p></o:p></pre><pre>+  &lt;/unix:file_test&gt;<o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+  &lt;unix:file_test  check=&quot;all&quot; check_existence=&quot;none_exist&quot; comment=&quot;/bin files uid root&quot; id=&quot;test_ownership_bin_files&quot; version=&quot;1&quot;&gt;<o:p></o:p></pre><pre>+    &lt;unix:object object_ref=&quot;object_file_ownership_bin_files&quot; /&gt;<o:p></o:p></pre><pre>+  &lt;/unix:file_test&gt;<o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+  &lt;unix:file_object comment=&quot;/lib directories&quot; id=&quot;file_ownership_object_bin_dir&quot; version=&quot;1&quot;&gt;<o:p></o:p></pre></blockquote><p class=MsoNormal><br>Minor note: lib/bin in comment<br><br><br><br><o:p></o:p></p><pre><o:p>&nbsp;</o:p></pre><pre>+    &lt;unix:behaviors recurse=&quot;directories&quot; recurse_direction=&quot;down&quot; max_depth=&quot;-1&quot; recurse_file_system=&quot;all&quot; /&gt;<o:p></o:p></pre><pre>+    &lt;unix:path operation=&quot;equals&quot;&gt;/bin&lt;/unix:path&gt;<o:p></o:p></pre><pre>+    &lt;unix:filename xsi:nil=&quot;true&quot; /&gt;<o:p></o:p></pre><pre>+    &lt;filter action=&quot;include&quot;&gt;state_owner_not_root&lt;/filter&gt;<o:p></o:p></pre><pre>+  &lt;/unix:file_object&gt;<o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+  &lt;unix:file_object comment=&quot;/bin files&quot; id=&quot;object_file_ownership_bin_files&quot; version=&quot;1&quot;&gt;<o:p></o:p></pre><pre>+    &lt;unix:behaviors recurse=&quot;directories&quot; recurse_direction=&quot;down&quot; max_depth=&quot;-1&quot; recurse_file_system=&quot;all&quot; /&gt;<o:p></o:p></pre><pre>+    &lt;unix:path operation=&quot;equals&quot;&gt;/bin&lt;/unix:path&gt;<o:p></o:p></pre><pre>+    &lt;unix:filename operation=&quot;pattern match&quot;&gt;^.*$&lt;/unix:filename&gt;<o:p></o:p></pre><pre>+   &lt;filter action=&quot;include&quot;&gt;state_owner_not_root&lt;/filter&gt;<o:p></o:p></pre><pre>+  &lt;/unix:file_object&gt;<o:p></o:p></pre><pre>+<o:p></o:p></pre><p class=MsoNormal><br><br><br>.... testing for non-root under /bin......<br>[shawn@SSG-RHEL6 checks]$ sudo chown shawn:shawn /bin/awk <br>[shawn@SSG-RHEL6 checks]$ ./testcheck.py file_ownership_binary_dirs.xml <br>Evaluating with OVAL tempfile : /tmp/file_ownership_binary_dirs6eQhsR.xml<br>Writing results to : /tmp/file_ownership_binary_dirs6eQhsR.xml-results<br>Definition oval:scap-security-guide.testing:def:261: false<br>Evaluation done.<br><br><br><br><br><br><o:p></o:p></p><pre><o:p>&nbsp;</o:p></pre><pre>+  &lt;unix:file_test  check=&quot;all&quot; check_existence=&quot;none_exist&quot; comment=&quot;/sbin directories uid root&quot; id=&quot;test_ownership_sbin_dir&quot; version=&quot;1&quot;&gt;<o:p></o:p></pre><pre>+    &lt;unix:object object_ref=&quot;object_file_ownership_sbin_dir&quot; /&gt;<o:p></o:p></pre><pre>+  &lt;/unix:file_test&gt;<o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+  &lt;unix:file_test  check=&quot;all&quot; check_existence=&quot;none_exist&quot; comment=&quot;/sbin files uid root&quot; id=&quot;test_ownership_sbin_files&quot; version=&quot;1&quot;&gt;<o:p></o:p></pre><pre>+    &lt;unix:object object_ref=&quot;object_file_ownership_sbin_files&quot; /&gt;<o:p></o:p></pre><pre>+  &lt;/unix:file_test&gt;<o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+  &lt;unix:file_object comment=&quot;/sbin directories&quot; id=&quot;object_file_ownership_sbin_dir&quot; version=&quot;1&quot;&gt;<o:p></o:p></pre><pre>+    &lt;unix:behaviors recurse=&quot;directories&quot; recurse_direction=&quot;down&quot; max_depth=&quot;-1&quot; recurse_file_system=&quot;all&quot; /&gt;<o:p></o:p></pre><pre>+    &lt;unix:path operation=&quot;equals&quot;&gt;/sbin&lt;/unix:path&gt;<o:p></o:p></pre><pre>+    &lt;unix:filename xsi:nil=&quot;true&quot; /&gt;<o:p></o:p></pre><pre>+    &lt;filter action=&quot;include&quot;&gt;state_owner_not_root&lt;/filter&gt;<o:p></o:p></pre><pre>+  &lt;/unix:file_object&gt;<o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+  &lt;unix:file_object comment=&quot;/sbin files&quot; id=&quot;object_file_ownership_sbin_files&quot; version=&quot;1&quot;&gt;<o:p></o:p></pre><pre>+    &lt;unix:behaviors recurse=&quot;directories&quot; recurse_direction=&quot;down&quot; max_depth=&quot;-1&quot; recurse_file_system=&quot;all&quot; /&gt;<o:p></o:p></pre><pre>+    &lt;unix:path operation=&quot;equals&quot;&gt;/sbin&lt;/unix:path&gt;<o:p></o:p></pre><pre>+    &lt;unix:filename operation=&quot;pattern match&quot;&gt;^.*$&lt;/unix:filename&gt;<o:p></o:p></pre><pre>+    &lt;filter action=&quot;include&quot;&gt;state_owner_not_root&lt;/filter&gt;<o:p></o:p></pre><pre>+  &lt;/unix:file_object&gt;<o:p></o:p></pre><p class=MsoNormal><br><br>..... testing for non-root under /sbin .....<br>[shawn@SSG-RHEL6 checks]$ sudo rm /usr/local/bin/filetest <br>[shawn@SSG-RHEL6 checks]$ sudo chown shawn:shawn /sbin/addpart <br>[shawn@SSG-RHEL6 checks]$ ./testcheck.py file_ownership_binary_dirs.xml <br>Evaluating with OVAL tempfile : /tmp/file_ownership_binary_dirsu4wrQh.xml<br>Writing results to : /tmp/file_ownership_binary_dirsu4wrQh.xml-results<br>Definition oval:scap-security-guide.testing:def:261: false<br>Evaluation done.<br><br><br><br><o:p></o:p></p><pre><o:p>&nbsp;</o:p></pre><pre>+<o:p></o:p></pre><pre>+  &lt;unix:file_test  check=&quot;all&quot; check_existence=&quot;none_exist&quot; comment=&quot;/usr/bin directories uid root&quot; id=&quot;test_ownership_usr_bin_dir&quot; version=&quot;1&quot;&gt;<o:p></o:p></pre><pre>+    &lt;unix:object object_ref=&quot;object_file_ownership_usr_bin_dir&quot; /&gt;<o:p></o:p></pre><pre>+  &lt;/unix:file_test&gt;<o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+  &lt;unix:file_test  check=&quot;all&quot; check_existence=&quot;none_exist&quot; comment=&quot;/usr/bin files uid root&quot; id=&quot;test_ownership_usr_bin_files&quot; version=&quot;1&quot;&gt;<o:p></o:p></pre><pre>+    &lt;unix:object object_ref=&quot;object_file_ownership_usr_bin_files&quot; /&gt;<o:p></o:p></pre><pre>+  &lt;/unix:file_test&gt;<o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+  &lt;unix:file_object comment=&quot;/usr/bin directories&quot; id=&quot;object_file_ownership_usr_bin_dir&quot; version=&quot;1&quot;&gt;<o:p></o:p></pre><pre>+    &lt;unix:behaviors recurse=&quot;directories&quot; recurse_direction=&quot;down&quot; max_depth=&quot;-1&quot; recurse_file_system=&quot;all&quot; /&gt;<o:p></o:p></pre><pre>+    &lt;unix:path operation=&quot;equals&quot;&gt;/usr/bin&lt;/unix:path&gt;<o:p></o:p></pre><pre>+    &lt;unix:filename xsi:nil=&quot;true&quot; /&gt;<o:p></o:p></pre><pre>+       &lt;filter action=&quot;include&quot;&gt;state_owner_not_root&lt;/filter&gt;<o:p></o:p></pre><pre>+  &lt;/unix:file_object&gt;<o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+  &lt;unix:file_object comment=&quot;/usr/bin files&quot; id=&quot;object_file_ownership_usr_bin_files&quot; version=&quot;1&quot;&gt;<o:p></o:p></pre><pre>+    &lt;unix:behaviors recurse=&quot;directories&quot; recurse_direction=&quot;down&quot; max_depth=&quot;-1&quot; recurse_file_system=&quot;all&quot; /&gt;<o:p></o:p></pre><pre>+    &lt;unix:path operation=&quot;equals&quot;&gt;/usr/bin&lt;/unix:path&gt;<o:p></o:p></pre><pre>+    &lt;unix:filename operation=&quot;pattern match&quot;&gt;^.*$&lt;/unix:filename&gt;<o:p></o:p></pre><pre>+    &lt;filter action=&quot;include&quot;&gt;state_owner_not_root&lt;/filter&gt;<o:p></o:p></pre><pre>+  &lt;/unix:file_object&gt;  <o:p></o:p></pre><p class=MsoNormal><br><br>..... testing for non-root under /usr/bin .....<br>[shawn@SSG-RHEL6 checks]$ sudo chown root:root /bin/awk <br>[shawn@SSG-RHEL6 checks]$ sudo chown shawn:shawn /usr/bin/a2p <br>[shawn@SSG-RHEL6 checks]$ ./testcheck.py file_ownership_binary_dirs.xml <br>Evaluating with OVAL tempfile : /tmp/file_ownership_binary_dirs2wHH6V.xml<br>Writing results to : /tmp/file_ownership_binary_dirs2wHH6V.xml-results<br>Definition oval:scap-security-guide.testing:def:261: false<br>Evaluation done.<br><br><br><br><br><o:p></o:p></p><pre><o:p>&nbsp;</o:p></pre><pre>+<o:p></o:p></pre><pre>+  &lt;unix:file_test  check=&quot;all&quot; check_existence=&quot;none_exist&quot; comment=&quot;/usr/sbin directories uid root&quot; id=&quot;test_ownership_usr_sbin_dir&quot; version=&quot;1&quot;&gt;<o:p></o:p></pre><pre>+    &lt;unix:object object_ref=&quot;object_file_ownership_usr_sbin_dir&quot; /&gt;<o:p></o:p></pre><pre>+  &lt;/unix:file_test&gt;<o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+  &lt;unix:file_test  check=&quot;all&quot; check_existence=&quot;none_exist&quot; comment=&quot;/usr/sbin files uid root&quot; id=&quot;test_ownership_usr_sbin_files&quot; version=&quot;1&quot;&gt;<o:p></o:p></pre><pre>+    &lt;unix:object object_ref=&quot;object_file_ownership_usr_sbin_files&quot; /&gt;<o:p></o:p></pre><pre>+  &lt;/unix:file_test&gt;<o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+  &lt;unix:file_object comment=&quot;/usr/sbin directories&quot; id=&quot;object_file_ownership_usr_sbin_dir&quot; version=&quot;1&quot;&gt;<o:p></o:p></pre><pre>+    &lt;unix:behaviors recurse=&quot;directories&quot; recurse_direction=&quot;down&quot; max_depth=&quot;-1&quot; recurse_file_system=&quot;all&quot; /&gt;<o:p></o:p></pre><pre>+    &lt;unix:path operation=&quot;equals&quot;&gt;/usr/sbin&lt;/unix:path&gt;<o:p></o:p></pre><pre>+    &lt;unix:filename xsi:nil=&quot;true&quot; /&gt;<o:p></o:p></pre><pre>+       &lt;filter action=&quot;include&quot;&gt;state_owner_not_root&lt;/filter&gt;<o:p></o:p></pre><pre>+  &lt;/unix:file_object&gt;<o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+  &lt;unix:file_object comment=&quot;/usr/sbin files&quot; id=&quot;object_file_ownership_usr_sbin_files&quot; version=&quot;1&quot;&gt;<o:p></o:p></pre><pre>+    &lt;unix:behaviors recurse=&quot;directories&quot; recurse_direction=&quot;down&quot; max_depth=&quot;-1&quot; recurse_file_system=&quot;all&quot; /&gt;<o:p></o:p></pre><pre>+    &lt;unix:path operation=&quot;equals&quot;&gt;/usr/sbin&lt;/unix:path&gt;<o:p></o:p></pre><pre>+    &lt;unix:filename operation=&quot;pattern match&quot;&gt;^.*$&lt;/unix:filename&gt;<o:p></o:p></pre><pre>+    &lt;filter action=&quot;include&quot;&gt;state_owner_not_root&lt;/filter&gt;<o:p></o:p></pre><pre>+  &lt;/unix:file_object&gt;<o:p></o:p></pre><p class=MsoNormal><br><br><br>..... testing for non-root under /usr/sbin .....<br>[shawn@SSG-RHEL6 checks]$ sudo chown root:root /sbin/addpart <br>[shawn@SSG-RHEL6 checks]$ sudo chown shawn:shawn /usr/sbin/accept <br>[shawn@SSG-RHEL6 checks]$ ./testcheck.py file_ownership_binary_dirs.xml <br>Evaluating with OVAL tempfile : /tmp/file_ownership_binary_dirsddwRzZ.xml<br>Writing results to : /tmp/file_ownership_binary_dirsddwRzZ.xml-results<br>Definition oval:scap-security-guide.testing:def:261: false<br>Evaluation done.<br><br><br><br><br><o:p></o:p></p><pre><o:p>&nbsp;</o:p></pre><pre>+<o:p></o:p></pre><pre>+  &lt;unix:file_test  check=&quot;all&quot; check_existence=&quot;none_exist&quot; comment=&quot;/usr/local/bin directories uid root&quot; id=&quot;test_ownership_usr_local_bin_dir&quot; version=&quot;1&quot;&gt;<o:p></o:p></pre><pre>+    &lt;unix:object object_ref=&quot;object_file_ownership_usr_local_bin_dir&quot; /&gt;<o:p></o:p></pre><pre>+  &lt;/unix:file_test&gt;<o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+  &lt;unix:file_test  check=&quot;all&quot; check_existence=&quot;none_exist&quot; comment=&quot;/usr/local/bin files uid root&quot; id=&quot;test_ownership_usr_local_bin_files&quot; version=&quot;1&quot;&gt;<o:p></o:p></pre><pre>+    &lt;unix:object object_ref=&quot;object_file_ownership_usr_local_bin_files&quot; /&gt;<o:p></o:p></pre><pre>+  &lt;/unix:file_test&gt;<o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+  &lt;unix:file_object comment=&quot;/usr/local/bin directories&quot; id=&quot;object_file_ownership_usr_local_bin_dir&quot; version=&quot;1&quot;&gt;<o:p></o:p></pre><pre>+    &lt;unix:behaviors recurse=&quot;directories&quot; recurse_direction=&quot;down&quot; max_depth=&quot;-1&quot; recurse_file_system=&quot;all&quot; /&gt;<o:p></o:p></pre><pre>+    &lt;unix:path operation=&quot;equals&quot;&gt;/usr/local/bin&lt;/unix:path&gt;<o:p></o:p></pre><pre>+    &lt;unix:filename xsi:nil=&quot;true&quot; /&gt;<o:p></o:p></pre><pre>+   &lt;filter action=&quot;include&quot;&gt;state_owner_not_root&lt;/filter&gt;<o:p></o:p></pre><pre>+  &lt;/unix:file_object&gt;<o:p></o:p></pre><p class=MsoNormal><br><span style='color:red'><br>..... testing for non-root under /usr/local/bin .....<br>[shawn@SSG-RHEL6 checks]$ sudo touch /usr/local/bin/filetest ; sudo chown shawn:shawn /usr/local/bin/filetest<br>[shawn@SSG-RHEL6 checks]$ sudo chown root:root /usr/bin/a2p <br>[shawn@SSG-RHEL6 checks]$ ./testcheck.py file_ownership_binary_dirs.xml <br>Evaluating with OVAL tempfile : /tmp/file_ownership_binary_dirsno1sSt.xml<br>Writing results to : /tmp/file_ownership_binary_dirsno1sSt.xml-results<br>Definition oval:scap-security-guide.testing:def:261: true<br>Evaluation done.<br>[shawn@SSG-RHEL6 checks]$ ll /usr/local/bin/filetest <br>-rw-r--r--. 1 shawn shawn 0 Oct&nbsp; 1 00:09 /usr/local/bin/filetest</span><br><br><br><br><br><o:p></o:p></p><pre><o:p>&nbsp;</o:p></pre><pre>+<o:p></o:p></pre><pre>+  &lt;unix:file_object comment=&quot;/usr/local/bin files&quot; id=&quot;object_file_ownership_usr_local_bin_files&quot; version=&quot;1&quot;&gt;<o:p></o:p></pre><pre>+    &lt;unix:behaviors recurse=&quot;directories&quot; recurse_direction=&quot;down&quot; max_depth=&quot;-1&quot; recurse_file_system=&quot;all&quot; /&gt;<o:p></o:p></pre><pre>+    &lt;unix:path operation=&quot;equals&quot;&gt;/usr/local/bin&lt;/unix:path&gt;<o:p></o:p></pre><pre>+    &lt;unix:filename operation=&quot;pattern match&quot;&gt;^.*$&lt;/unix:filename&gt;<o:p></o:p></pre><pre>+    &lt;filter action=&quot;include&quot;&gt;state_owner_not_root&lt;/filter&gt;<o:p></o:p></pre><pre>+  &lt;/unix:file_object&gt;<o:p></o:p></pre><pre>+  <o:p></o:p></pre><pre>+  &lt;unix:file_test  check=&quot;all&quot; check_existence=&quot;none_exist&quot; comment=&quot;/usr/local/sbin directories uid root&quot; id=&quot;test_ownership_usr_local_sbin_dir&quot; version=&quot;1&quot;&gt;<o:p></o:p></pre><pre>+    &lt;unix:object object_ref=&quot;object_file_ownership_usr_local_sbin_dir&quot; /&gt;<o:p></o:p></pre><pre>+  &lt;/unix:file_test&gt;<o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+  &lt;unix:file_test  check=&quot;all&quot; check_existence=&quot;none_exist&quot; comment=&quot;/usr/local/sbin files uid root&quot; id=&quot;test_ownership_usr_local_sbin_files&quot; version=&quot;1&quot;&gt;<o:p></o:p></pre><pre>+    &lt;unix:object object_ref=&quot;object_file_ownership_usr_local_sbin_files&quot; /&gt;<o:p></o:p></pre><pre>+  &lt;/unix:file_test&gt;<o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+  &lt;unix:file_object comment=&quot;/usr/local/sbin directories&quot; id=&quot;object_file_ownership_usr_local_sbin_dir&quot; version=&quot;1&quot;&gt;<o:p></o:p></pre><pre>+    &lt;unix:behaviors recurse=&quot;directories&quot; recurse_direction=&quot;down&quot; max_depth=&quot;-1&quot; recurse_file_system=&quot;all&quot; /&gt;<o:p></o:p></pre><pre>+    &lt;unix:path operation=&quot;equals&quot;&gt;/usr/local/sbin&lt;/unix:path&gt;<o:p></o:p></pre><pre>+    &lt;unix:filename xsi:nil=&quot;true&quot; /&gt;<o:p></o:p></pre><pre>+   &lt;filter action=&quot;include&quot;&gt;state_owner_not_root&lt;/filter&gt;<o:p></o:p></pre><pre>+  &lt;/unix:file_object&gt;<o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+  &lt;unix:file_object comment=&quot;/usr/local/sbin files&quot; id=&quot;object_file_ownership_usr_local_sbin_files&quot; version=&quot;1&quot;&gt;<o:p></o:p></pre><pre>+    &lt;unix:behaviors recurse=&quot;directories&quot; recurse_direction=&quot;down&quot; max_depth=&quot;-1&quot; recurse_file_system=&quot;all&quot; /&gt;<o:p></o:p></pre><pre>+    &lt;unix:path operation=&quot;equals&quot;&gt;/usr/local/sbin&lt;/unix:path&gt;<o:p></o:p></pre><pre>+    &lt;unix:filename operation=&quot;pattern match&quot;&gt;^.*$&lt;/unix:filename&gt;<o:p></o:p></pre><pre>+    &lt;filter action=&quot;include&quot;&gt;state_owner_not_root&lt;/filter&gt;<o:p></o:p></pre><pre>+  &lt;/unix:file_object&gt;<o:p></o:p></pre><p class=MsoNormal><br><br>..... testing for non-root under /usr/local/sbin .....<br>[shawn@SSG-RHEL6 checks]$ sudo chown root:root /usr/sbin/accept<br>[shawn@SSG-RHEL6 checks]$ sudo touch /usr/local/sbin/test ; sudo chown shawn:shawn /usr/local/sbin/test<br>[shawn@SSG-RHEL6 checks]$ ./testcheck.py file_ownership_binary_dirs.xml <br>Evaluating with OVAL tempfile : /tmp/file_ownership_binary_dirszY6fXL.xml<br>Writing results to : /tmp/file_ownership_binary_dirszY6fXL.xml-results<br>Definition oval:scap-security-guide.testing:def:261: false<br>Evaluation done.<br><br><br><br><br><o:p></o:p></p><pre><o:p>&nbsp;</o:p></pre><pre>+<o:p></o:p></pre><pre>+  &lt;unix:file_state id=&quot;state_owner_not_root&quot; version=&quot;1&quot; operator=&quot;OR&quot;&gt;<o:p></o:p></pre><pre>+&lt;!--    &lt;unix:group_id datatype=&quot;int&quot; operation=&quot;not equal&quot;&gt;0&lt;/unix:group_id&gt; --&gt;<o:p></o:p></pre><pre>+    &lt;unix:user_id datatype=&quot;int&quot; operation=&quot;not equal&quot;&gt;0&lt;/unix:user_id&gt;<o:p></o:p></pre><pre>+  &lt;/unix:file_state&gt;<o:p></o:p></pre><pre>+&lt;/def-group&gt;<o:p></o:p></pre><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>