From caea71ff33a73d17960e90fb81e8e42219bef5db Mon Sep 17 00:00:00 2001 From: Paul Gortmaker Date: Sun, 27 Jul 2014 22:58:35 -0400 Subject: 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: +# chown -R root:root ${D} +# cd ${D} && chown root:src usr/src +# cd ${D} && chown root:staff var/local +# cd ${D} && chown root:staff home + cd ${D} && chmod 755 `find . -type d` + cd ${D} && chmod 1777 `cat ${S}/debian/1777-dirs` + cd ${D} && chmod 2775 `cat ${S}/debian/2775-dirs` that was the original code so THAT is why they're 2775.. they were original 'src' and 'staff'.. which has gotten lost sometime in the last 10 years AND the origin: commit b45c9ed40bb4f893f99127a21776aef3ae888ad7 Author: Chris Larson Date: Tue Sep 30 16:30:41 2003 +0000 Add base-files 3.0.10 (from debian). 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 Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- meta/files/fs-perms.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'meta/files') diff --git a/meta/files/fs-perms.txt b/meta/files/fs-perms.txt index c829bec..9c14410 100644 --- a/meta/files/fs-perms.txt +++ b/meta/files/fs-perms.txt @@ -50,16 +50,16 @@ ${localstatedir}/log link volatile/log ${localstatedir}/lock link /run/lock ${localstatedir}/tmp link volatile/tmp +/home 0755 root root false - - - +/srv 0755 root root false - - - +${prefix}/src 0755 root root false - - - +${localstatedir}/local 0755 root root false - - - + # Special permissions from base-files # Set 1777 /tmp 01777 root root false - - - ${localstatedir}/volatile/tmp 01777 root root false - - - -# Set 2775 -/home 02755 root root false - - - -${prefix}/src 02755 root root false - - - -${localstatedir}/local 02755 root root false - - - - # Set 3755 /srv 0755 root root false - - - -- cgit v1.1