<?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>6519</bug_id>
          
          <creation_ts>2014-07-09 16:53:35 +0000</creation_ts>
          <short_desc>RootFS polluted by inherited setgid bit</short_desc>
          <delta_ts>2014-11-17 15:28:20 +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>BitBake</product>
          <component>bitbake</component>
          <version>2.0</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>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.7 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="seth bollinger">sethb</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>andrax.g.necula</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>ross.burton</cc>
          
          <qa_contact name="Andra Necula">andrax.g.necula</qa_contact>
          <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>44402</commentid>
    <comment_count>0</comment_count>
    <who name="seth bollinger">sethb</who>
    <bug_when>2014-07-09 16:53:35 +0000</bug_when>
    <thetext>I recently ran into a problem where I had trouble determining why the setgid bit was set in my rootfs.  It turns out that debian has this bit set on /usr/local (where I was building from), and thus inherited this bit from that directory tree.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44709</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-07-25 15:07:26 +0000</bug_when>
    <thetext>Fixed in master with http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=3134ae11270dae9d8dddc5a16e2321b675b5d522</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46028</commentid>
    <comment_count>2</comment_count>
    <who name="Andra Necula">andrax.g.necula</who>
    <bug_when>2014-10-02 11:21:18 +0000</bug_when>
    <thetext>Verified on master commit: 8ac8eca2e3bd8c78e2b31ea974930ed0243258a3
Host : Debian 3.14.13-2, x86_64</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47052</commentid>
    <comment_count>3</comment_count>
    <who name="Andra Necula">andrax.g.necula</who>
    <bug_when>2014-11-17 15:28:20 +0000</bug_when>
    <thetext>Verified on master commit: 8ac8eca2e3bd8c78e2b31ea974930ed0243258a3
Host : Debian 3.14.13-2, x86_64

Reproducing steps (method 1):
1. in poky folder : source oe-init-build-env newbuild
2. ls -ld .
3. chmode g+s .
4. ls -ls ( now now you can see the sticky note (s): drwxr -sr -x ....)
5. bitbake core-image-minimal

You will get an error message: &quot;TMPDIR is setgid, please don&apos;t build in a setgid directory&quot;


(method 2)
1. cd  /usr/local
2. sudo mkdir test
3. sudo chown user test
1. in poky folder : source oe-init-build-env /usr/local/test
2. ls -ld .
3. chmode g+s .
4. ls -ls ( now now you can see the sticky note (s): drwxr -sr -x ....)
5. bitbake core-image-minimal

You will get an error message: &quot;TMPDIR is setgid, please don&apos;t build in a setgid directory&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>