aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files
diff options
context:
space:
mode:
authorDeomid Ryabkov <rojer@rojer.me>2021-10-23 16:22:39 +0300
committerChristian Lamparter <chunkeey@gmail.com>2021-10-23 19:30:54 +0200
commit430f69194388ad6a7826a51e0e2b2dd478e27f0f (patch)
treee5453e465e574f57dacc848cb0831860054e786d /package/base-files/files
parentac4a21141a0e091ff1e5f8e1f03dded082582f37 (diff)
downloadupstream-430f69194388ad6a7826a51e0e2b2dd478e27f0f.tar.gz
upstream-430f69194388ad6a7826a51e0e2b2dd478e27f0f.tar.bz2
upstream-430f69194388ad6a7826a51e0e2b2dd478e27f0f.zip
base-files: chmod 1777 /var/lock
Per FHS 3.0, /var/lock is the location for lock files [1]. However its current permissions (755) are too restrictive for use by unprivileged processes. Debian and Ubuntu set them to 1777, and now so do we. [1] <https://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html#varlockLockFiles> Signed-off-by: Deomid Ryabkov <rojer@rojer.me> [fixed typo in commit message, had to remove "rojer" due to git hooks] Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-xpackage/base-files/files/etc/init.d/boot5
1 files changed, 3 insertions, 2 deletions
diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot
index a1e8e828dd..e1c60c1c2f 100755
--- a/package/base-files/files/etc/init.d/boot
+++ b/package/base-files/files/etc/init.d/boot
@@ -21,9 +21,10 @@ boot() {
[ -f /proc/mounts ] || /sbin/mount_root
[ -f /proc/jffs2_bbc ] && echo "S" > /proc/jffs2_bbc
- mkdir -p /var/run
- mkdir -p /var/log
mkdir -p /var/lock
+ chmod 1777 /var/lock
+ mkdir -p /var/log
+ mkdir -p /var/run
mkdir -p /var/state
mkdir -p /var/tmp
mkdir -p /tmp/.uci