summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGregor <dan.mcgregor@usask.ca>2018-05-09 12:53:20 -0600
committerDan McGregor <dan.mcgregor@usask.ca>2018-05-11 09:47:40 -0600
commit28b5ee379708c36bd66a442b1b515bb32a729fc0 (patch)
tree2eacd4d812ed75fda629663678dd968ad8fa78c8
parentb223a1f4d5835a64c75f6a5678c4cc96dce4d65f (diff)
downloadopenembedded-core-contrib-28b5ee379708c36bd66a442b1b515bb32a729fc0.tar.gz
openembedded-core-contrib-28b5ee379708c36bd66a442b1b515bb32a729fc0.tar.bz2
openembedded-core-contrib-28b5ee379708c36bd66a442b1b515bb32a729fc0.zip
base-files: change permissions on /sys and /proc
Fedora and Debian use permissions of 555 for /proc and /sys. In addition LXC seems to always mount them 555. Having them be 755 causes permission issues on upgrades inside an lxc container, because the guest does not have the permission to change their modes. So, just bite the bullet and force them to be 555. Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
-rw-r--r--meta/recipes-core/base-files/base-files_3.0.14.bb8
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/recipes-core/base-files/base-files_3.0.14.bb b/meta/recipes-core/base-files/base-files_3.0.14.bb
index 1c0863b1c7..a6963ba24d 100644
--- a/meta/recipes-core/base-files/base-files_3.0.14.bb
+++ b/meta/recipes-core/base-files/base-files_3.0.14.bb
@@ -32,15 +32,16 @@ INHIBIT_DEFAULT_DEPS = "1"
docdir_append = "/${P}"
dirs1777 = "/tmp ${localstatedir}/volatile/tmp"
dirs2775 = ""
+dirs555 = "/sys /proc"
dirs755 = "/boot /dev ${base_bindir} ${base_sbindir} ${base_libdir} \
${sysconfdir} ${sysconfdir}/default \
- ${sysconfdir}/skel ${nonarch_base_libdir} /mnt /proc ${ROOT_HOME} /run \
+ ${sysconfdir}/skel ${nonarch_base_libdir} /mnt ${ROOT_HOME} /run \
${prefix} ${bindir} ${docdir} /usr/games ${includedir} \
${libdir} ${sbindir} ${datadir} \
${datadir}/common-licenses ${datadir}/dict ${infodir} \
${mandir} ${datadir}/misc ${localstatedir} \
${localstatedir}/backups ${localstatedir}/lib \
- /sys ${localstatedir}/lib/misc ${localstatedir}/spool \
+ ${localstatedir}/lib/misc ${localstatedir}/spool \
${localstatedir}/volatile \
${localstatedir}/${@'volatile/' if oe.types.boolean('${VOLATILE_LOG_DIR}') else ''}log \
/home ${prefix}/src ${localstatedir}/local \
@@ -93,6 +94,9 @@ pkg_preinst_${PN} () {
}
do_install () {
+ for d in ${dirs555}; do
+ install -m 0555 -d ${D}$d
+ done
for d in ${dirs755}; do
install -m 0755 -d ${D}$d
done