<?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>6517</bug_id>
          
          <creation_ts>2014-07-09 08:25:51 +0000</creation_ts>
          <short_desc>File modes not preserved when using ipk package backend</short_desc>
          <delta_ts>2015-03-12 07:16:28 +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>1.7</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>normal</bug_severity>
          <target_milestone>1.8</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chen Qi">Qi.Chen</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>44392</commentid>
    <comment_count>0</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2014-07-09 08:25:51 +0000</bug_when>
    <thetext>The /home directory, as well as the /var/local directory, is supposed to have &apos;2775&apos; permission bits, as configured in the default fs-perms.txt file.

When using rpm package backend, the file modes are correct on target; however, when using ipk package backend, the file modes of /home and /var/local are &apos;0755&apos;.

Steps to reproduce:
1. Set in local.conf:
PACKAGE_CLASSES = &quot;package_ipk&quot;
2. bitbake core-image-minimal
3. start target and `stat /home /var/local&apos;

//Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49391</commentid>
    <comment_count>1</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2015-03-12 07:16:28 +0000</bug_when>
    <thetext>The problem is fixed by the following commit.

commit 77e4defa57f02b7f7ad23b07f169ec280228585b
Author: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
Date:   Sun Jul 27 22:58:35 2014 -0400

    base-files: remove strange 2775 perms from dirs like /home
    
    Mark Hatle did the historical research into why this was so,
    and found that it originally was via debian import, and then
    it morphed over time:
    
    &lt;fray&gt; +#   chown -R root:root ${D}
    &lt;fray&gt; +#   cd ${D} &amp;&amp; chown root:src     usr/src
    &lt;fray&gt; +#   cd ${D} &amp;&amp; chown root:staff   var/local
    &lt;fray&gt; +#   cd ${D} &amp;&amp; chown root:staff   home
    &lt;fray&gt; +    cd ${D} &amp;&amp; chmod 755  `find . -type d`
    &lt;fray&gt; +    cd ${D} &amp;&amp; chmod 1777 `cat ${S}/debian/1777-dirs`
    &lt;fray&gt; +    cd ${D} &amp;&amp; chmod 2775 `cat ${S}/debian/2775-dirs`
    &lt;fray&gt; that was the original code
    &lt;fray&gt; so THAT is why they&apos;re 2775..
    &lt;fray&gt; they were original &apos;src&apos; and &apos;staff&apos;.. which has gotten lost
          sometime in the last 10 years
    
    &lt;fray&gt; AND the origin:
    &lt;fray&gt; commit b45c9ed40bb4f893f99127a21776aef3ae888ad7
    &lt;fray&gt; Author: Chris Larson &lt;clarson@kergoth.com&gt;
    &lt;fray&gt; Date:   Tue Sep 30 16:30:41 2003 +0000
    &lt;fray&gt;     Add base-files 3.0.10 (from debian).
    &lt;fray&gt; thats where the brain damage started ... Debian in 2003..
    
    Here we simply convert them to being normal 755 dirs.
    
    [YOCTO #6579]
    
    Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
    Signed-off-by: Saul Wold &lt;sgw@linux.intel.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>