<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> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </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> </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="/bin /usr/bin /usr/local/bin /sbin /usr/sbin /usr/local/sbin"<br>[root@SSG-RHEL6 checks]# for dirPath in $DIRS; do<br>> find $dirPath \! -user root -exec chown root '{}' \;<br>> 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> </o:p></pre><pre>Signed-off-by: Caleb Cooper <a href="mailto:coopercd@ornl.gov"><coopercd@ornl.gov></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> </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>+<def-group><o:p></o:p></pre><pre>+ <definition class="compliance" id="file_ownership_binary_dirs" version="1"><o:p></o:p></pre><pre>+ <metadata><o:p></o:p></pre><pre>+ <title>Verify that System Executables Have Root Ownership</title><o:p></o:p></pre><pre>+ <affected family="unix"><o:p></o:p></pre><pre>+ <platform>Red Hat Enterprise Linux 6</platform><o:p></o:p></pre><pre>+ </affected><o:p></o:p></pre><pre>+ <description>Checks that /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin, /usr/local/sbin and objects therein, are owned by root</description><o:p></o:p></pre><pre>+ <reference source="swells" ref_id="20130914" ref_url="test_attestation" /><o:p></o:p></pre><pre>+ </metadata><o:p></o:p></pre><pre>+ <criteria operator="AND"><o:p></o:p></pre><pre>+ <criterion test_ref="test_ownership_bin_dir" /><o:p></o:p></pre><pre>+ <criterion test_ref="test_ownership_sbin_dir" /><o:p></o:p></pre><pre>+ <criterion test_ref="test_ownership_usr_bin_dir" /><o:p></o:p></pre><pre>+ <criterion test_ref="test_ownership_usr_sbin_dir" /><o:p></o:p></pre><pre>+ <criterion test_ref="test_ownership_usr_local_bin_dir" /><o:p></o:p></pre><pre>+ <criterion test_ref="test_ownership_usr_local_bin_dir" /><o:p></o:p></pre><pre>+ <criterion test_ref="test_ownership_bin_files" /><o:p></o:p></pre><pre>+ <criterion test_ref="test_ownership_sbin_files" /><o:p></o:p></pre><pre>+ <criterion test_ref="test_ownership_usr_bin_files" /><o:p></o:p></pre><pre>+ <criterion test_ref="test_ownership_usr_sbin_files" /><o:p></o:p></pre><pre>+ <criterion test_ref="test_ownership_usr_local_sbin_files" /><o:p></o:p></pre><pre>+ <criterion test_ref="test_ownership_usr_local_sbin_files" /><o:p></o:p></pre><pre>+ </criteria><o:p></o:p></pre><pre>+ </definition><o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+ <unix:file_test check="all" check_existence="none_exist" comment="/bin directories uid root" id="test_ownership_bin_dir" version="1"><o:p></o:p></pre><pre>+ <unix:object object_ref="file_ownership_object_bin_dir" /><o:p></o:p></pre><pre>+ </unix:file_test><o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+ <unix:file_test check="all" check_existence="none_exist" comment="/bin files uid root" id="test_ownership_bin_files" version="1"><o:p></o:p></pre><pre>+ <unix:object object_ref="object_file_ownership_bin_files" /><o:p></o:p></pre><pre>+ </unix:file_test><o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+ <unix:file_object comment="/lib directories" id="file_ownership_object_bin_dir" version="1"><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> </o:p></pre><pre>+ <unix:behaviors recurse="directories" recurse_direction="down" max_depth="-1" recurse_file_system="all" /><o:p></o:p></pre><pre>+ <unix:path operation="equals">/bin</unix:path><o:p></o:p></pre><pre>+ <unix:filename xsi:nil="true" /><o:p></o:p></pre><pre>+ <filter action="include">state_owner_not_root</filter><o:p></o:p></pre><pre>+ </unix:file_object><o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+ <unix:file_object comment="/bin files" id="object_file_ownership_bin_files" version="1"><o:p></o:p></pre><pre>+ <unix:behaviors recurse="directories" recurse_direction="down" max_depth="-1" recurse_file_system="all" /><o:p></o:p></pre><pre>+ <unix:path operation="equals">/bin</unix:path><o:p></o:p></pre><pre>+ <unix:filename operation="pattern match">^.*$</unix:filename><o:p></o:p></pre><pre>+ <filter action="include">state_owner_not_root</filter><o:p></o:p></pre><pre>+ </unix:file_object><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> </o:p></pre><pre>+ <unix:file_test check="all" check_existence="none_exist" comment="/sbin directories uid root" id="test_ownership_sbin_dir" version="1"><o:p></o:p></pre><pre>+ <unix:object object_ref="object_file_ownership_sbin_dir" /><o:p></o:p></pre><pre>+ </unix:file_test><o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+ <unix:file_test check="all" check_existence="none_exist" comment="/sbin files uid root" id="test_ownership_sbin_files" version="1"><o:p></o:p></pre><pre>+ <unix:object object_ref="object_file_ownership_sbin_files" /><o:p></o:p></pre><pre>+ </unix:file_test><o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+ <unix:file_object comment="/sbin directories" id="object_file_ownership_sbin_dir" version="1"><o:p></o:p></pre><pre>+ <unix:behaviors recurse="directories" recurse_direction="down" max_depth="-1" recurse_file_system="all" /><o:p></o:p></pre><pre>+ <unix:path operation="equals">/sbin</unix:path><o:p></o:p></pre><pre>+ <unix:filename xsi:nil="true" /><o:p></o:p></pre><pre>+ <filter action="include">state_owner_not_root</filter><o:p></o:p></pre><pre>+ </unix:file_object><o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+ <unix:file_object comment="/sbin files" id="object_file_ownership_sbin_files" version="1"><o:p></o:p></pre><pre>+ <unix:behaviors recurse="directories" recurse_direction="down" max_depth="-1" recurse_file_system="all" /><o:p></o:p></pre><pre>+ <unix:path operation="equals">/sbin</unix:path><o:p></o:p></pre><pre>+ <unix:filename operation="pattern match">^.*$</unix:filename><o:p></o:p></pre><pre>+ <filter action="include">state_owner_not_root</filter><o:p></o:p></pre><pre>+ </unix:file_object><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> </o:p></pre><pre>+<o:p></o:p></pre><pre>+ <unix:file_test check="all" check_existence="none_exist" comment="/usr/bin directories uid root" id="test_ownership_usr_bin_dir" version="1"><o:p></o:p></pre><pre>+ <unix:object object_ref="object_file_ownership_usr_bin_dir" /><o:p></o:p></pre><pre>+ </unix:file_test><o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+ <unix:file_test check="all" check_existence="none_exist" comment="/usr/bin files uid root" id="test_ownership_usr_bin_files" version="1"><o:p></o:p></pre><pre>+ <unix:object object_ref="object_file_ownership_usr_bin_files" /><o:p></o:p></pre><pre>+ </unix:file_test><o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+ <unix:file_object comment="/usr/bin directories" id="object_file_ownership_usr_bin_dir" version="1"><o:p></o:p></pre><pre>+ <unix:behaviors recurse="directories" recurse_direction="down" max_depth="-1" recurse_file_system="all" /><o:p></o:p></pre><pre>+ <unix:path operation="equals">/usr/bin</unix:path><o:p></o:p></pre><pre>+ <unix:filename xsi:nil="true" /><o:p></o:p></pre><pre>+ <filter action="include">state_owner_not_root</filter><o:p></o:p></pre><pre>+ </unix:file_object><o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+ <unix:file_object comment="/usr/bin files" id="object_file_ownership_usr_bin_files" version="1"><o:p></o:p></pre><pre>+ <unix:behaviors recurse="directories" recurse_direction="down" max_depth="-1" recurse_file_system="all" /><o:p></o:p></pre><pre>+ <unix:path operation="equals">/usr/bin</unix:path><o:p></o:p></pre><pre>+ <unix:filename operation="pattern match">^.*$</unix:filename><o:p></o:p></pre><pre>+ <filter action="include">state_owner_not_root</filter><o:p></o:p></pre><pre>+ </unix:file_object> <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> </o:p></pre><pre>+<o:p></o:p></pre><pre>+ <unix:file_test check="all" check_existence="none_exist" comment="/usr/sbin directories uid root" id="test_ownership_usr_sbin_dir" version="1"><o:p></o:p></pre><pre>+ <unix:object object_ref="object_file_ownership_usr_sbin_dir" /><o:p></o:p></pre><pre>+ </unix:file_test><o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+ <unix:file_test check="all" check_existence="none_exist" comment="/usr/sbin files uid root" id="test_ownership_usr_sbin_files" version="1"><o:p></o:p></pre><pre>+ <unix:object object_ref="object_file_ownership_usr_sbin_files" /><o:p></o:p></pre><pre>+ </unix:file_test><o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+ <unix:file_object comment="/usr/sbin directories" id="object_file_ownership_usr_sbin_dir" version="1"><o:p></o:p></pre><pre>+ <unix:behaviors recurse="directories" recurse_direction="down" max_depth="-1" recurse_file_system="all" /><o:p></o:p></pre><pre>+ <unix:path operation="equals">/usr/sbin</unix:path><o:p></o:p></pre><pre>+ <unix:filename xsi:nil="true" /><o:p></o:p></pre><pre>+ <filter action="include">state_owner_not_root</filter><o:p></o:p></pre><pre>+ </unix:file_object><o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+ <unix:file_object comment="/usr/sbin files" id="object_file_ownership_usr_sbin_files" version="1"><o:p></o:p></pre><pre>+ <unix:behaviors recurse="directories" recurse_direction="down" max_depth="-1" recurse_file_system="all" /><o:p></o:p></pre><pre>+ <unix:path operation="equals">/usr/sbin</unix:path><o:p></o:p></pre><pre>+ <unix:filename operation="pattern match">^.*$</unix:filename><o:p></o:p></pre><pre>+ <filter action="include">state_owner_not_root</filter><o:p></o:p></pre><pre>+ </unix:file_object><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> </o:p></pre><pre>+<o:p></o:p></pre><pre>+ <unix:file_test check="all" check_existence="none_exist" comment="/usr/local/bin directories uid root" id="test_ownership_usr_local_bin_dir" version="1"><o:p></o:p></pre><pre>+ <unix:object object_ref="object_file_ownership_usr_local_bin_dir" /><o:p></o:p></pre><pre>+ </unix:file_test><o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+ <unix:file_test check="all" check_existence="none_exist" comment="/usr/local/bin files uid root" id="test_ownership_usr_local_bin_files" version="1"><o:p></o:p></pre><pre>+ <unix:object object_ref="object_file_ownership_usr_local_bin_files" /><o:p></o:p></pre><pre>+ </unix:file_test><o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+ <unix:file_object comment="/usr/local/bin directories" id="object_file_ownership_usr_local_bin_dir" version="1"><o:p></o:p></pre><pre>+ <unix:behaviors recurse="directories" recurse_direction="down" max_depth="-1" recurse_file_system="all" /><o:p></o:p></pre><pre>+ <unix:path operation="equals">/usr/local/bin</unix:path><o:p></o:p></pre><pre>+ <unix:filename xsi:nil="true" /><o:p></o:p></pre><pre>+ <filter action="include">state_owner_not_root</filter><o:p></o:p></pre><pre>+ </unix:file_object><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 1 00:09 /usr/local/bin/filetest</span><br><br><br><br><br><o:p></o:p></p><pre><o:p> </o:p></pre><pre>+<o:p></o:p></pre><pre>+ <unix:file_object comment="/usr/local/bin files" id="object_file_ownership_usr_local_bin_files" version="1"><o:p></o:p></pre><pre>+ <unix:behaviors recurse="directories" recurse_direction="down" max_depth="-1" recurse_file_system="all" /><o:p></o:p></pre><pre>+ <unix:path operation="equals">/usr/local/bin</unix:path><o:p></o:p></pre><pre>+ <unix:filename operation="pattern match">^.*$</unix:filename><o:p></o:p></pre><pre>+ <filter action="include">state_owner_not_root</filter><o:p></o:p></pre><pre>+ </unix:file_object><o:p></o:p></pre><pre>+ <o:p></o:p></pre><pre>+ <unix:file_test check="all" check_existence="none_exist" comment="/usr/local/sbin directories uid root" id="test_ownership_usr_local_sbin_dir" version="1"><o:p></o:p></pre><pre>+ <unix:object object_ref="object_file_ownership_usr_local_sbin_dir" /><o:p></o:p></pre><pre>+ </unix:file_test><o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+ <unix:file_test check="all" check_existence="none_exist" comment="/usr/local/sbin files uid root" id="test_ownership_usr_local_sbin_files" version="1"><o:p></o:p></pre><pre>+ <unix:object object_ref="object_file_ownership_usr_local_sbin_files" /><o:p></o:p></pre><pre>+ </unix:file_test><o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+ <unix:file_object comment="/usr/local/sbin directories" id="object_file_ownership_usr_local_sbin_dir" version="1"><o:p></o:p></pre><pre>+ <unix:behaviors recurse="directories" recurse_direction="down" max_depth="-1" recurse_file_system="all" /><o:p></o:p></pre><pre>+ <unix:path operation="equals">/usr/local/sbin</unix:path><o:p></o:p></pre><pre>+ <unix:filename xsi:nil="true" /><o:p></o:p></pre><pre>+ <filter action="include">state_owner_not_root</filter><o:p></o:p></pre><pre>+ </unix:file_object><o:p></o:p></pre><pre>+<o:p></o:p></pre><pre>+ <unix:file_object comment="/usr/local/sbin files" id="object_file_ownership_usr_local_sbin_files" version="1"><o:p></o:p></pre><pre>+ <unix:behaviors recurse="directories" recurse_direction="down" max_depth="-1" recurse_file_system="all" /><o:p></o:p></pre><pre>+ <unix:path operation="equals">/usr/local/sbin</unix:path><o:p></o:p></pre><pre>+ <unix:filename operation="pattern match">^.*$</unix:filename><o:p></o:p></pre><pre>+ <filter action="include">state_owner_not_root</filter><o:p></o:p></pre><pre>+ </unix:file_object><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> </o:p></pre><pre>+<o:p></o:p></pre><pre>+ <unix:file_state id="state_owner_not_root" version="1" operator="OR"><o:p></o:p></pre><pre>+<!-- <unix:group_id datatype="int" operation="not equal">0</unix:group_id> --><o:p></o:p></pre><pre>+ <unix:user_id datatype="int" operation="not equal">0</unix:user_id><o:p></o:p></pre><pre>+ </unix:file_state><o:p></o:p></pre><pre>+</def-group><o:p></o:p></pre><p class=MsoNormal><o:p> </o:p></p></div></body></html>