[OE-core] [PATCH 0/3] base-files/fs-perms.txt fix up odd perm inconsistencies.

Paul Gortmaker paul.gortmaker at windriver.com
Mon Jul 28 02:58:33 UTC 2014


Originally I was aiming to fix YOCTO #6579 -- where we had drwxr-sr-x set
for /home for no particular reason (other than historical reasons; see the
commit log for details).  In doing so I also uncovered a couple other small
inconsistencies that could use a cleanup, as follows:

 -the group we called dir2775 we were chmod'ing as 2755 (7 vs 5)

 -the /var/mail from the lsb additions was incorrect perms and group

 -the grouping headings given for the lsb dirs (e.g. "dir4775") were
  completely misleading; it appears the original author used the 1st
  digit ("4") as a group counter and not part of the perms.

The last two lsb related items are in both in the last commit below,
since they end up touching the same lines.

Build tested with MACHINE="intel-corei7-64" from meta-intel with the
core-image-sato.  We can see /home does not have "s" set anymore.

poky$ls -ld build/tmp/work/intel_corei7_64-poky-linux/core-image-sato/1.0-r0/rootfs/home/
drwxr-xr-x 4 paul paul 4096 Jul 25 20:27 build/tmp/work/intel_corei7_64-poky-linux/core-image-sato/1.0-r0/rootfs/home/
poky$

Bug:
	https://bugzilla.yoctoproject.org/show_bug.cgi?id=6579

Paul.
---

Paul Gortmaker (3):
  base-files: actually install 2775 dirs as 2775, not 2755
  base-files: remove strange 2775 perms from dirs like /home
  base-files: fix up misleading dir grouping names for lsb dirs

 meta/files/fs-perms.txt                           | 16 +++++++--------
 meta/recipes-core/base-files/base-files_3.0.14.bb | 24 ++++++++++++-----------
 2 files changed, 21 insertions(+), 19 deletions(-)

-- 
2.0.1




More information about the Openembedded-core mailing list