diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2014-07-27 22:58:35 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-29 09:58:26 +0100 |
commit | caea71ff33a73d17960e90fb81e8e42219bef5db (patch) | |
tree | cea35268dd43782504e590ff31cd5cda4269434c /meta/files | |
parent | 97cc4978f3c20337952b87340311c48a8bcb5744 (diff) | |
download | poky-caea71ff33a73d17960e90fb81e8e42219bef5db.tar.gz |
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:
<fray> +# chown -R root:root ${D}
<fray> +# cd ${D} && chown root:src usr/src
<fray> +# cd ${D} && chown root:staff var/local
<fray> +# cd ${D} && chown root:staff home
<fray> + cd ${D} && chmod 755 `find . -type d`
<fray> + cd ${D} && chmod 1777 `cat ${S}/debian/1777-dirs`
<fray> + cd ${D} && chmod 2775 `cat ${S}/debian/2775-dirs`
<fray> that was the original code
<fray> so THAT is why they're 2775..
<fray> they were original 'src' and 'staff'.. which has gotten lost
sometime in the last 10 years
<fray> AND the origin:
<fray> commit b45c9ed40bb4f893f99127a21776aef3ae888ad7
<fray> Author: Chris Larson <clarson@kergoth.com>
<fray> Date: Tue Sep 30 16:30:41 2003 +0000
<fray> Add base-files 3.0.10 (from debian).
<fray> thats where the brain damage started ... Debian in 2003..
Here we simply convert them to being normal 755 dirs.
[YOCTO #6579]
(From OE-Core rev: 77e4defa57f02b7f7ad23b07f169ec280228585b)
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/files')
-rw-r--r-- | meta/files/fs-perms.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/files/fs-perms.txt b/meta/files/fs-perms.txt index c829bece2b..9c144109ea 100644 --- a/meta/files/fs-perms.txt +++ b/meta/files/fs-perms.txt | |||
@@ -50,16 +50,16 @@ ${localstatedir}/log link volatile/log | |||
50 | ${localstatedir}/lock link /run/lock | 50 | ${localstatedir}/lock link /run/lock |
51 | ${localstatedir}/tmp link volatile/tmp | 51 | ${localstatedir}/tmp link volatile/tmp |
52 | 52 | ||
53 | /home 0755 root root false - - - | ||
54 | /srv 0755 root root false - - - | ||
55 | ${prefix}/src 0755 root root false - - - | ||
56 | ${localstatedir}/local 0755 root root false - - - | ||
57 | |||
53 | # Special permissions from base-files | 58 | # Special permissions from base-files |
54 | # Set 1777 | 59 | # Set 1777 |
55 | /tmp 01777 root root false - - - | 60 | /tmp 01777 root root false - - - |
56 | ${localstatedir}/volatile/tmp 01777 root root false - - - | 61 | ${localstatedir}/volatile/tmp 01777 root root false - - - |
57 | 62 | ||
58 | # Set 2775 | ||
59 | /home 02755 root root false - - - | ||
60 | ${prefix}/src 02755 root root false - - - | ||
61 | ${localstatedir}/local 02755 root root false - - - | ||
62 | |||
63 | # Set 3755 | 63 | # Set 3755 |
64 | /srv 0755 root root false - - - | 64 | /srv 0755 root root false - - - |
65 | 65 | ||