Module: meta-angstrom
Branch: master
Commit: 6d518574c11bca1a56ec9b83afd18196a82fbfb0

Author: Koen Kooi <k...@dominion.thruhere.net>
Date:   Thu Oct 13 10:26:52 2011 +0200

angstrom: use custom fs-perms.txt that doesn't destroy our /var setup

Signed-off-by: Koen Kooi <k...@dominion.thruhere.net>

---

 conf/distro/include/angstrom-core-tweaks.inc |    3 +
 files/fs-perms-angstrom.txt                  |   59 ++++++++++++++++++++++++++
 2 files changed, 62 insertions(+), 0 deletions(-)

diff --git a/conf/distro/include/angstrom-core-tweaks.inc 
b/conf/distro/include/angstrom-core-tweaks.inc
index cd1cb80..609d8c5 100644
--- a/conf/distro/include/angstrom-core-tweaks.inc
+++ b/conf/distro/include/angstrom-core-tweaks.inc
@@ -40,6 +40,9 @@ TOOLCHAIN_PATH ?= 
"${STAGING_DIR_NATIVE}${prefix_native}/bin/${TUNE_PKGARCH}${HO
 TOOLCHAIN_SYSPATH ?= "${TOOLCHAIN_PATH}/${TARGET_SYS}"
 
 # Image.bbclass stuff:
+
+# Override default fs-perms.txt that messes with our /var setup:
+FILESYSTEM_PERMS_TABLES = "fs-perms-angstrom.txt"
  
 #
 # udev, devfsd, busybox-mdev (from busybox) or none
diff --git a/files/fs-perms-angstrom.txt b/files/fs-perms-angstrom.txt
new file mode 100644
index 0000000..be95502
--- /dev/null
+++ b/files/fs-perms-angstrom.txt
@@ -0,0 +1,59 @@
+# This file contains a list of files and directories with known permissions.
+# It is used by the packaging class to ensure that the permissions, owners and
+# group of listed files and directories are in sync across the system.
+#
+# The format of this file 
+#
+#<path>        <mode>  <uid>   <gid>   <walk>  <fmode> <fuid>  <fgid>
+#
+# or
+#
+#<path> link <target>
+#
+# <path>: directory path
+# <mode>: mode for directory
+# <uid>:  uid for directory
+# <gid>:  gid for directory
+# <walk>: recursively walk the directory?  true or false
+# <fmode>: if walking, new mode for files
+# <fuid>:  if walking, new uid for files
+# <fgid>:  if walking, new gid for files
+# <target>: turn the directory into a symlink point to target
+#
+# in mode, uid or gid, a "-" means don't change any existing values
+#
+# /usr/src             0755    root    root    false   -       -       -
+# /usr/share/man       0755    root    root    true    0644    root    root
+
+# Note: all standard config directories are automatically assigned "0755 root 
root false - - -"
+
+# Documentation should always be corrected
+${mandir}              0755    root    root    true    0644    root    root
+${infodir}             0755    root    root    true    0644    root    root
+${docdir}              0755    root    root    true    0644    root    root
+${datadir}/gtk-doc     0755    root    root    true    0644    root    root
+
+# Fixup locales
+${datadir}/locale      0755    root    root    true    0644    root    root
+
+# Cleanup headers
+${includedir}          0755    root    root    true    0644    root    root
+${oldincludedir}       0755    root    root    true    0644    root    root
+
+# Cleanup debug src
+/usr/src/debug         0755    root    root    true    0644    root    root
+
+# Special permissions from base-files
+# Set 1777
+/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 - - -
+
+# Set 4775
+/var/mail                      02755   root    root    false - - -


_______________________________________________
Angstrom-distro-devel mailing list
Angstrom-distro-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel

Reply via email to