<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openembedded-core.git/meta/files/fs-perms.txt, branch 2016-10</title>
<subtitle>Mirror of openembedded-core</subtitle>
<link rel='alternate' type='text/html' href='https://git.multitech.net/cgit/openembedded-core.git/'/>
<entry>
<title>fs-perms.txt: fix ROOT_HOME's permission</title>
<updated>2016-04-15T05:58:49+00:00</updated>
<author>
<name>Robert Yang</name>
<email>liezhi.yang@windriver.com</email>
</author>
<published>2016-04-06T05:34:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.multitech.net/cgit/openembedded-core.git/commit/?id=37aac647d510557323083c77c3114476440a325d'/>
<id>37aac647d510557323083c77c3114476440a325d</id>
<content type='text'>
It should be 0700 rather than 0755.

Reported-by: Charles Chan &lt;charles.wh.chan@gmail.com&gt;
Signed-off-by: Robert Yang &lt;liezhi.yang@windriver.com&gt;
Signed-off-by: Ross Burton &lt;ross.burton@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It should be 0700 rather than 0755.

Reported-by: Charles Chan &lt;charles.wh.chan@gmail.com&gt;
Signed-off-by: Robert Yang &lt;liezhi.yang@windriver.com&gt;
Signed-off-by: Ross Burton &lt;ross.burton@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "fs-perms.txt: fix ROOT_HOME's permission"</title>
<updated>2016-04-15T05:58:47+00:00</updated>
<author>
<name>Ross Burton</name>
<email>ross.burton@intel.com</email>
</author>
<published>2016-04-14T16:28:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.multitech.net/cgit/openembedded-core.git/commit/?id=94e1b6f3909c76f2129a0c5e77fa6da3ba8ca5bb'/>
<id>94e1b6f3909c76f2129a0c5e77fa6da3ba8ca5bb</id>
<content type='text'>
This reverts commit eeae2ac4887298bcbab0e105798818414686dc97.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit eeae2ac4887298bcbab0e105798818414686dc97.
</pre>
</div>
</content>
</entry>
<entry>
<title>fs-perms.txt: fix ROOT_HOME's permission</title>
<updated>2016-04-14T09:58:28+00:00</updated>
<author>
<name>Robert Yang</name>
<email>liezhi.yang@windriver.com</email>
</author>
<published>2016-04-06T05:34:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.multitech.net/cgit/openembedded-core.git/commit/?id=4ac2e5493671b198e562732e5fd8f525247527e4'/>
<id>4ac2e5493671b198e562732e5fd8f525247527e4</id>
<content type='text'>
It should be 0700 rather than 0755.

Reported-by: Charles Chan &lt;charles.wh.chan@gmail.com&gt;
Signed-off-by: Robert Yang &lt;liezhi.yang@windriver.com&gt;
Signed-off-by: Ross Burton &lt;ross.burton@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It should be 0700 rather than 0755.

Reported-by: Charles Chan &lt;charles.wh.chan@gmail.com&gt;
Signed-off-by: Robert Yang &lt;liezhi.yang@windriver.com&gt;
Signed-off-by: Ross Burton &lt;ross.burton@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>base-files: fix up misleading dir grouping names for lsb dirs</title>
<updated>2014-07-29T08:56:30+00:00</updated>
<author>
<name>Paul Gortmaker</name>
<email>paul.gortmaker@windriver.com</email>
</author>
<published>2014-07-28T02:58:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.multitech.net/cgit/openembedded-core.git/commit/?id=5cba414e3fd7dbe761a6f628c6a368a412c0cba3'/>
<id>5cba414e3fd7dbe761a6f628c6a368a412c0cba3</id>
<content type='text'>
In commit b0df35f47fb79dc149504bd66d1186b3276f9510
("base-files: Add to make some directories needed by LSB.") there
were new groupings of dirs made.  But rather than keep the grouping
names permissions based as they clearly were, it seems that it was
unfortunately misinterpreted as a counter, simply incrementing as
a new group was added.

This leads to dir3755 getting chmod'd to 0755 and dir4775 being
chmod'd to 2775 which to any new reader of the code is terribly
confusing.

Choose names that clearly reflect the permissions, and add a lsb
suffix to indicate the role.

Also note that the settings for /var/mail seem incorrect, and so
they have been aligned with what is seen in most common distros.

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;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In commit b0df35f47fb79dc149504bd66d1186b3276f9510
("base-files: Add to make some directories needed by LSB.") there
were new groupings of dirs made.  But rather than keep the grouping
names permissions based as they clearly were, it seems that it was
unfortunately misinterpreted as a counter, simply incrementing as
a new group was added.

This leads to dir3755 getting chmod'd to 0755 and dir4775 being
chmod'd to 2775 which to any new reader of the code is terribly
confusing.

Choose names that clearly reflect the permissions, and add a lsb
suffix to indicate the role.

Also note that the settings for /var/mail seem incorrect, and so
they have been aligned with what is seen in most common distros.

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;
</pre>
</div>
</content>
</entry>
<entry>
<title>base-files: remove strange 2775 perms from dirs like /home</title>
<updated>2014-07-29T08:56:20+00:00</updated>
<author>
<name>Paul Gortmaker</name>
<email>paul.gortmaker@windriver.com</email>
</author>
<published>2014-07-28T02:58:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.multitech.net/cgit/openembedded-core.git/commit/?id=77e4defa57f02b7f7ad23b07f169ec280228585b'/>
<id>77e4defa57f02b7f7ad23b07f169ec280228585b</id>
<content type='text'>
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're 2775..
&lt;fray&gt; they were original 'src' and 'staff'.. 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;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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're 2775..
&lt;fray&gt; they were original 'src' and 'staff'.. 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;
</pre>
</div>
</content>
</entry>
<entry>
<title>base-files: add /run directory from FHS 3 draft specification</title>
<updated>2013-05-29T21:07:23+00:00</updated>
<author>
<name>Jonathan Liu</name>
<email>net147@gmail.com</email>
</author>
<published>2013-05-26T11:13:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.multitech.net/cgit/openembedded-core.git/commit/?id=0e326280a15b0f2c4ef2ef4ec441f63f55b75873'/>
<id>0e326280a15b0f2c4ef2ef4ec441f63f55b75873</id>
<content type='text'>
This adds the /run directory from the Filesystem Hierarchy Standard 3.0
Draft [1] and refactors the filesystem as follows:
- Remove creation of /var/volatile/run
- Remove creation of /var/volatile/lock
- Remove symbolic link from /var/run to /var/volatile/run
- Remove symbolic link from /var/lock to /var/volatile/lock
- Add symbolic link from /var/run to /run
- Add symbolic link from /var/lock -&gt; /run/lock
- Add /run to /etc/fstab for sysvinit compatibility

[1] http://www.linuxbase.org/betaspecs/fhs/fhs.html#runRuntimeVariableData

Signed-off-by: Jonathan Liu &lt;net147@gmail.com&gt;
Signed-off-by: Saul Wold &lt;sgw@linux.intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds the /run directory from the Filesystem Hierarchy Standard 3.0
Draft [1] and refactors the filesystem as follows:
- Remove creation of /var/volatile/run
- Remove creation of /var/volatile/lock
- Remove symbolic link from /var/run to /var/volatile/run
- Remove symbolic link from /var/lock to /var/volatile/lock
- Add symbolic link from /var/run to /run
- Add symbolic link from /var/lock -&gt; /run/lock
- Add /run to /etc/fstab for sysvinit compatibility

[1] http://www.linuxbase.org/betaspecs/fhs/fhs.html#runRuntimeVariableData

Signed-off-by: Jonathan Liu &lt;net147@gmail.com&gt;
Signed-off-by: Saul Wold &lt;sgw@linux.intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fs-perms.txt: Don't tinker with file modes in /usr/src/debug</title>
<updated>2013-05-03T15:15:39+00:00</updated>
<author>
<name>Phil Blundell</name>
<email>pb@pbcl.net</email>
</author>
<published>2013-05-02T13:55:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.multitech.net/cgit/openembedded-core.git/commit/?id=91b02c65d83811738d4c0e4b7c454459430c8b9b'/>
<id>91b02c65d83811738d4c0e4b7c454459430c8b9b</id>
<content type='text'>
Since 6775feb9fe935ab01fd9cae2b2d3fce5824a9a72 our local "copy" of the
debug sources has in fact been hardlinked to ${S} and potentially other
places too.  This means that any modifications we make to these files
might have wider consequences than intended.

Avoid this potential pitfall by telling fixup_perms() to leave the file
modes in this directory alone.  No great harm will result from shipping
debug sources with a mode other than 0644: if the mode was permissive
enough for us to compile the sources in the first place then it must
also be permissive enough for subsequent debugging.

Signed-off-by: Phil Blundell &lt;philb@gnu.org&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since 6775feb9fe935ab01fd9cae2b2d3fce5824a9a72 our local "copy" of the
debug sources has in fact been hardlinked to ${S} and potentially other
places too.  This means that any modifications we make to these files
might have wider consequences than intended.

Avoid this potential pitfall by telling fixup_perms() to leave the file
modes in this directory alone.  No great harm will result from shipping
debug sources with a mode other than 0644: if the mode was permissive
enough for us to compile the sources in the first place then it must
also be permissive enough for subsequent debugging.

Signed-off-by: Phil Blundell &lt;philb@gnu.org&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fs-perms: remove /var/cache from volatiles</title>
<updated>2013-02-06T09:36:33+00:00</updated>
<author>
<name>Laurentiu Palcu</name>
<email>laurentiu.palcu@intel.com</email>
</author>
<published>2013-02-04T09:26:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.multitech.net/cgit/openembedded-core.git/commit/?id=a3b84a3a3d94252060eae076f6dd54e6bf12dfb1'/>
<id>a3b84a3a3d94252060eae076f6dd54e6bf12dfb1</id>
<content type='text'>
Signed-off-by: Laurentiu Palcu &lt;laurentiu.palcu@intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Laurentiu Palcu &lt;laurentiu.palcu@intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>classes/package.bbclass: Add fixup_perms</title>
<updated>2011-06-30T21:51:26+00:00</updated>
<author>
<name>Mark Hatle</name>
<email>mark.hatle@windriver.com</email>
</author>
<published>2011-06-20T15:57:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.multitech.net/cgit/openembedded-core.git/commit/?id=8c720efa053f81dc8d2bb604cdbdb25de9a6efab'/>
<id>8c720efa053f81dc8d2bb604cdbdb25de9a6efab</id>
<content type='text'>
Add a new function that is responsible for fixing directory and file
permissions, owners and groups during the packaging process.  This will fix
various issues where two packages may create the same directory and end up
with different permissions, owner and/or group.

The issue being resolved is that if two packages conflict in their ownership
of a directory, the first installed into the rootfs sets the permissions.
This leads to a least potentially non-deterministic filesystems, at worst
security defects.

The user can specify their own settings via the configuration files
specified in FILESYSTEM_PERMS_TABLES.  If this is not defined, it will
fall back to loading files/fs-perms.txt from BBPATH.  The format of this
file is documented within the file.

By default all of the system directories, specified in bitbake.conf, will
be fixed to be 0755, root, root.

The fs-perms.txt contains a few default entries to correct documentation,
locale, headers and debug sources.  It was discovered these are often
incorrect due to being directly copied from the build user environment.

The entries needed to match the base-files package have also been added.

Also tweak a couple of warnings to provide more diagnostic information.

Signed-off-by: Mark Hatle &lt;mark.hatle@windriver.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a new function that is responsible for fixing directory and file
permissions, owners and groups during the packaging process.  This will fix
various issues where two packages may create the same directory and end up
with different permissions, owner and/or group.

The issue being resolved is that if two packages conflict in their ownership
of a directory, the first installed into the rootfs sets the permissions.
This leads to a least potentially non-deterministic filesystems, at worst
security defects.

The user can specify their own settings via the configuration files
specified in FILESYSTEM_PERMS_TABLES.  If this is not defined, it will
fall back to loading files/fs-perms.txt from BBPATH.  The format of this
file is documented within the file.

By default all of the system directories, specified in bitbake.conf, will
be fixed to be 0755, root, root.

The fs-perms.txt contains a few default entries to correct documentation,
locale, headers and debug sources.  It was discovered these are often
incorrect due to being directly copied from the build user environment.

The entries needed to match the base-files package have also been added.

Also tweak a couple of warnings to provide more diagnostic information.

Signed-off-by: Mark Hatle &lt;mark.hatle@windriver.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
