summary refs log tree commit diff
path: root/modules/system/boot/stage-2-init.sh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2011-10-27 17:34:16 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2011-10-27 17:34:16 +0000
commit926091c265c60e8a2fea614108e2bab76e60cfec (patch)
treead81a3f12cf8d351cb031db6124accf995debfde /modules/system/boot/stage-2-init.sh
parentc7f568dc064dc4cd49499ca3d3d2d79ffa1060e9 (diff)
downloadnixpkgs-926091c265c60e8a2fea614108e2bab76e60cfec.tar
nixpkgs-926091c265c60e8a2fea614108e2bab76e60cfec.tar.gz
nixpkgs-926091c265c60e8a2fea614108e2bab76e60cfec.tar.bz2
nixpkgs-926091c265c60e8a2fea614108e2bab76e60cfec.tar.lz
nixpkgs-926091c265c60e8a2fea614108e2bab76e60cfec.tar.xz
nixpkgs-926091c265c60e8a2fea614108e2bab76e60cfec.tar.zst
nixpkgs-926091c265c60e8a2fea614108e2bab76e60cfec.zip
* Make the permissions on /run less liberal.
svn path=/nixos/trunk/; revision=30065
Diffstat (limited to 'modules/system/boot/stage-2-init.sh')
-rw-r--r--modules/system/boot/stage-2-init.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/system/boot/stage-2-init.sh b/modules/system/boot/stage-2-init.sh
index 649faaa8a8d..28d721e6b65 100644
--- a/modules/system/boot/stage-2-init.sh
+++ b/modules/system/boot/stage-2-init.sh
@@ -126,7 +126,7 @@ rm -rf /nix/var/nix/gcroots/tmp /nix/var/nix/temproots
 if ! mountpoint -q /run; then
     rm -rf /run
     mkdir -m 0755 -p /run
-    mount -t tmpfs -o "mode=1777,size=@runSize@" none /run
+    mount -t tmpfs -o "mode=0755,size=@runSize@" none /run
 fi
 
 mkdir -m 0700 -p /run/lock