summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorDan McGregor <dan.mcgregor@usask.ca>2018-10-17 15:22:35 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-16 16:33:09 +0000
commit8522638d56c20486e0fe211c323ab8c3ef6f6544 (patch)
treef1b07ef54fc2130aff9cb3f838e396f6c22601bb /meta
parent4c21eb49eb9e678e88453bf985a0322776d2e25c (diff)
downloadpoky-8522638d56c20486e0fe211c323ab8c3ef6f6544.tar.gz
base-files: change permissions on /sys and /proc
The kernel mounts /proc and /sys with the mode 555. Fedora explicitly sets this value in its filesystem setup package. Debian doesn't seem to set it explictly. Having them be 755 causes permission issues on upgrades inside a container where the guest does not have the permission to change the modes of the mount points. So, just bite the bullet and force them to be 555. (From OE-Core rev: 7e311b0c7222fa9127a96945c9ded7bee5e40eb3) (From OE-Core rev: 26d5ceb33425fa85bc84b825609e1b45b13d3ddd) Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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"
32docdir_append = "/${P}" 32docdir_append = "/${P}"
33dirs1777 = "/tmp ${localstatedir}/volatile/tmp" 33dirs1777 = "/tmp ${localstatedir}/volatile/tmp"
34dirs2775 = "" 34dirs2775 = ""
35dirs555 = "/sys /proc"
35dirs755 = "/boot /dev ${base_bindir} ${base_sbindir} ${base_libdir} \ 36dirs755 = "/boot /dev ${base_bindir} ${base_sbindir} ${base_libdir} \
36 ${sysconfdir} ${sysconfdir}/default \ 37 ${sysconfdir} ${sysconfdir}/default \
37 ${sysconfdir}/skel ${nonarch_base_libdir} /mnt /proc ${ROOT_HOME} /run \ 38 ${sysconfdir}/skel ${nonarch_base_libdir} /mnt ${ROOT_HOME} /run \
38 ${prefix} ${bindir} ${docdir} /usr/games ${includedir} \ 39 ${prefix} ${bindir} ${docdir} /usr/games ${includedir} \
39 ${libdir} ${sbindir} ${datadir} \ 40 ${libdir} ${sbindir} ${datadir} \
40 ${datadir}/common-licenses ${datadir}/dict ${infodir} \ 41 ${datadir}/common-licenses ${datadir}/dict ${infodir} \
41 ${mandir} ${datadir}/misc ${localstatedir} \ 42 ${mandir} ${datadir}/misc ${localstatedir} \
42 ${localstatedir}/backups ${localstatedir}/lib \ 43 ${localstatedir}/backups ${localstatedir}/lib \
43 /sys ${localstatedir}/lib/misc ${localstatedir}/spool \ 44 ${localstatedir}/lib/misc ${localstatedir}/spool \
44 ${localstatedir}/volatile \ 45 ${localstatedir}/volatile \
45 ${localstatedir}/${@'volatile/' if oe.types.boolean('${VOLATILE_LOG_DIR}') else ''}log \ 46 ${localstatedir}/${@'volatile/' if oe.types.boolean('${VOLATILE_LOG_DIR}') else ''}log \
46 /home ${prefix}/src ${localstatedir}/local \ 47 /home ${prefix}/src ${localstatedir}/local \
@@ -93,6 +94,9 @@ pkg_preinst_${PN} () {
93} 94}
94 95
95do_install () { 96do_install () {
97 for d in ${dirs555}; do
98 install -m 0555 -d ${D}$d
99 done
96 for d in ${dirs755}; do 100 for d in ${dirs755}; do
97 install -m 0755 -d ${D}$d 101 install -m 0755 -d ${D}$d
98 done 102 done