<?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>9538</bug_id>
          
          <creation_ts>2016-04-28 10:26:53 +0000</creation_ts>
          <short_desc>Review common security hardening flags and expand security_flags.inc</short_desc>
          <delta_ts>2017-12-06 16:53:13 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.2 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Lock">joshuagloe</reporter>
          <assigned_to name="Joshua Lock">joshuagloe</assigned_to>
          <cc>jose.perez.carranza</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>61769</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-04-28 10:26:53 +0000</bug_when>
    <thetext>The security flags we apply when a distro includes security_flags.inc should be enhanced in-line with the best practices in widely deployed distributions such as Fedora[1][2], Debian[3][4] and Ubuntu[5].

The aim of this bug is to determine an appropriate list of flags to add to security_includes and ensure that we can perform a world build of OE-Core (and poky) with those flags enabled.

For any recipes which fail we will remove the flags which cause failures in a recipe-specific override.

Further bugs will be filed to investigate any recipes which require these overrides.

1. https://fedoraproject.org/wiki/Security_Features_Matrix#Userspace_Hardening
2. https://fedoraproject.org/wiki/Packaging:Guidelines?rd=Packaging/Guidelines#Compiler_flags
3. https://wiki.debian.org/Hardening
4. https://wiki.debian.org/HardeningWalkthrough
5. https://wiki.ubuntu.com/ToolChain/CompilerFlags</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63574</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-07-01 11:37:42 +0000</bug_when>
    <thetext>Also document for future reference what the flags do, how they should be used, and how to solve common problems.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65356</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-08-19 15:40:33 +0000</bug_when>
    <thetext>Series sent to the list for review:

http://lists.openembedded.org/pipermail/openembedded-core/2016-August/125370.html

I have the beginnings of some docs locally but don&apos;t think they&apos;ll get done for M3. I should probably split the docs out into a separate bug targeting M4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65881</commentid>
    <comment_count>3</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-09-07 15:51:56 +0000</bug_when>
    <thetext>Security flags were reviewed and a series proposed, however it was deemed the maintenance overhead for the one significant change (PIE linker flags) is untenable.

Review has been performed, marking this issue resolved.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>