<?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>6581</bug_id>
          
          <creation_ts>2014-07-26 12:43:35 +0000</creation_ts>
          <short_desc>Build failures as confined SELinux user</short_desc>
          <delta_ts>2015-01-09 17:15:37 +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>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>6580</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.8</target_milestone>
          <dependson>6580</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Enrico Scholz">enrico.scholz</reporter>
          <assigned_to name="Seebs">seebs</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</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>44738</commentid>
    <comment_count>0</comment_count>
    <who name="Enrico Scholz">enrico.scholz</who>
    <bug_when>2014-07-26 12:43:35 +0000</bug_when>
    <thetext>Recent pseudo breaks &apos;install ... &amp;&amp; sed -i&apos; sequences within do_install() (see bug #6580).  Unfortunately, this is done in a lot of recipes (base-files, base-passwd, python, glib-2.0, ...).

There are various fixes (in order of my preference):

1. modify &apos;pseudo&apos; to ignore &apos;selinux.*&apos; xattrs for now

2. modify &apos;pseudo&apos; to emulate SELinux behavior

3. change affected recipes to do the &apos;sed -i&apos; in do_configure() or do_compile()

4. revert to a previous &apos;pseudo&apos; version

5. create a &apos;sed&apos; wrapper in a preferred $PATH which catches &apos;sed -i&apos; and executes it in a &apos;pseudo&apos; friendly way

6. change &apos;install&apos; to skip setting of SELinux context; IMO this is not a practical solution because &apos;install&apos; comes from the linux distribution. ditto for &apos;sed&apos;

7. document that OE builds must be done as unconfined SELinux user resp. with disabled SELinux.  IMO, this would be a very bad fix because it lowers security significantly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47844</commentid>
    <comment_count>1</comment_count>
    <who name="Seebs">seebs</who>
    <bug_when>2015-01-09 17:15:37 +0000</bug_when>
    <thetext>This and 6580 appear to be the same thing, so I&apos;m closing one as a dup.

*** This bug has been marked as a duplicate of bug 6580 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>