From ef504c23b12c68f2daace826412b56523bed73b0 Mon Sep 17 00:00:00 2001 From: Matthew Burgess Date: Fri, 23 Dec 2011 19:04:27 +0000 Subject: [PATCH] Correct permissions on /run/shm. Fixes #2984. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9692 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- bootscripts/ChangeLog | 4 ++++ bootscripts/lfs/init.d/mountvirtfs | 1 + chapter01/changelog.xml | 4 ++++ lsb-bootscripts/ChangeLog | 2 ++ lsb-bootscripts/etc/init.d/mountvirtfs | 1 + 5 files changed, 12 insertions(+) diff --git a/bootscripts/ChangeLog b/bootscripts/ChangeLog index befc985b2..8217e2712 100644 --- a/bootscripts/ChangeLog +++ b/bootscripts/ChangeLog @@ -1,3 +1,7 @@ +2011-12-23 Matt Burgess + + * lfs/init.d/mountvirtfs: Correct permissions on /run/shm + 2011-11-28 DJ Lucas * lfs/init.d/mountfs: Add '-t nosysfs' to umount command diff --git a/bootscripts/lfs/init.d/mountvirtfs b/bootscripts/lfs/init.d/mountvirtfs index be6c8d0a0..b8de10076 100644 --- a/bootscripts/lfs/init.d/mountvirtfs +++ b/bootscripts/lfs/init.d/mountvirtfs @@ -35,6 +35,7 @@ case "${1}" in mkdir -p /run mount -n /run || failed=1 mkdir -p /run/{var,lock,shm} + chown 1777 /run/shm log_info_msg "Mounting virtual file systems: ${INFO}/run" diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 009b17452..3f5750264 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -39,6 +39,10 @@ 2011-12-22 + + [matthew] - Correct permissions on /run/shm. Fixes + #2984. + [matthew] - Add upstream patches for MPFR. Fixes #2983. diff --git a/lsb-bootscripts/ChangeLog b/lsb-bootscripts/ChangeLog index 769dcd581..02fffee96 100644 --- a/lsb-bootscripts/ChangeLog +++ b/lsb-bootscripts/ChangeLog @@ -1,3 +1,5 @@ +2011-12-23 Matt Burgess + * etc/init.d/mountvirtfs: Correct permissions on /run/shm 2011-05-23 DJ Lucas * Makefile, etc/default/rc: The value of ETCDIR is used to set the RC_BASE at install time. Changed default ETCDIR to /etc/rc.d and added /etc/init.d diff --git a/lsb-bootscripts/etc/init.d/mountvirtfs b/lsb-bootscripts/etc/init.d/mountvirtfs index 51f94a8b8..20fdd5a93 100644 --- a/lsb-bootscripts/etc/init.d/mountvirtfs +++ b/lsb-bootscripts/etc/init.d/mountvirtfs @@ -32,6 +32,7 @@ case "${1}" in # create needed directories in /run mkdir /run/{var,lock,shm} || failed=1 + chown 1777 /run/shm (exit ${failed}) evaluate_retval standard