<?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>14132</bug_id>
          
          <creation_ts>2020-11-21 14:31:11 +0000</creation_ts>
          <short_desc>umask causes leakage of file modes into target packages</short_desc>
          <delta_ts>2020-12-10 16:23:57 +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>3.1.5</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>major</bug_severity>
          <target_milestone>3.1.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Steve Sakoman">steve</assigned_to>
          <cc>anuj.mittal</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>mhalstead</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>88654</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-11-21 14:31:11 +0000</bug_when>
    <thetext>Depending on whether the host umask is 0002 or 0022, the permissions of files in the target packages changes. In particular for example, makedevs.c in makedevs-src. A more complete lists of leakage:

https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20201121-x10g6tpd/packages/diff-html/

This was illustrated with a new fedora33 worker bringup with a umask of 0002 instead of the usual 0022 of the other workers.

The issue is that package.bbclass copies in files using cpio but we don&apos;t appear to force the mode bits of debug/source files. fs-perms says:

# Cleanup debug src
/usr/src/debug		0755	root	root	true	-	root	root

Probably needs an fmode set? (the - above)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88675</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-11-25 11:57:25 +0000</bug_when>
    <thetext>This was fixed in master with:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=670b1be774e19bbc0d4a93f4b7c1c5ba9efa7374
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=451af0105bc934c6be239a79821193139e49ab1a

but we probably want to backport these for gatesgarth and LTS?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88763</commentid>
    <comment_count>2</comment_count>
    <who name="Steve Sakoman">steve</who>
    <bug_when>2020-12-10 16:23:57 +0000</bug_when>
    <thetext>Fixes cherry-picked to dunfell:

https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=dunfell&amp;id=433c03024126b79e796c9b823ab85eadc7499cb6

https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=dunfell&amp;id=9f697736e08a9c1cdc40b30898afb10e41f39655</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>