<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>4692</bug_id>
          
          <creation_ts>2013-06-12 10:04:21 +0000</creation_ts>
          <short_desc>[QA] - verify - Security Tools - consider fedora/gentoo runtime security tools</short_desc>
          <delta_ts>2013-07-30 13:53:51 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Test Plans/Suite</product>
          <component>test-plans/suite</component>
          <version>1.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.5 M3</target_milestone>
          <dependson>1584</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandru Georgescu">alexandru.c.georgescu</reporter>
          <assigned_to name="Stoicescu Cornel">corneliux.stoicescu</assigned_to>
          <cc>andrei.adrianx.dinu</cc>
    
    <cc>corneliux.stoicescu</cc>
    
    <cc>razvanx.ionescu</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>sh88ting.star</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>33825</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2013-06-12 10:04:21 +0000</bug_when>
    <thetext>Added to track feature verification for Bug 1584 - Security Tools - consider fedora/gentoo runtime security tools</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34274</commentid>
    <comment_count>1</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-07-02 09:36:28 +0000</bug_when>
    <thetext>In order to create test cases with pax-utils, we need to determine what binaries we will scan and what issues we will ignore.

The &apos; scanelf &apos; utility prints out information specific to the ELF structure of a binary.

Running the proposed scripts from the pax-utils documentation on a core-image-sato with the -q option set(Only output &apos;bad&apos; things), we get the following output:

* Scanning for PaX markings issues:
root@qemux86-64:/# scanelf -mxqR /

* Scanning for GNU_STACK/PT_LOAD markings issues:
root@qemux86-64:/# scanelf -meqR /
--- --- RWX  /boot/vmlinux-3.8.13-yocto-standard

* Scanning for TEXTREL information issues:
root@qemux86-64:/# scanelf -mtqR /

* Scanning for RPATH information issues:
root@qemux86-64:/# scanelf -mrqR /

* Scanning for BIND information issues:
root@qemux86-64:/# scanelf -mbqR /
LAZY  /sbin/mount.nfs
LAZY  /usr/lib/vte/gnome-pty-helper
LAZY  /usr/lib/dbus/dbus-daemon-launch-helper
LAZY  /usr/bin/newgrp.shadow
LAZY  /usr/bin/apm
LAZY  /usr/bin/su
LAZY  /usr/bin/chsh.shadow
LAZY  /usr/bin/expiry
LAZY  /usr/bin/chfn.shadow
LAZY  /usr/bin/sudo
LAZY  /usr/bin/gpasswd
LAZY  /usr/bin/chage
LAZY  /usr/bin/passwd.shadow
LAZY  /bin/tinylogin
LAZY  /bin/busybox

Please note that an empty output means we have no issues.

There are also scan options for the following ELF fields:
- SONAME information issues
- NEEDED information issues
- INTERP information issues

Test cases have been made for the above:

https://bugzilla.yoctoproject.org/tr_list_cases.cgi?searchstr=meta-security%3A%20PAX&amp;current_tab=case&amp;summary_type=anywordssubstr&amp;summary=meta-security%3A%20PAX&amp;field-1-0-0=summary&amp;type-1-0-0=anywordssubstr&amp;value-1-0-0=meta-security%3A%20PAX</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35157</commentid>
    <comment_count>2</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-07-30 10:11:15 +0000</bug_when>
    <thetext>Feature is verified.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35158</commentid>
    <comment_count>3</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-07-30 10:12:08 +0000</bug_when>
    <thetext>Setting this also to verified.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35169</commentid>
    <comment_count>4</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-07-30 13:53:51 +0000</bug_when>
    <thetext>Test cases for redhat-security added:
https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=782
https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=781</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>