Author: eelco
Date: Thu Oct 27 17:34:16 2011
New Revision: 30065
URL: https://nixos.org/websvn/nix/?rev=30065&sc=1

Log:
* Make the permissions on /run less liberal.

Modified:
   nixos/trunk/modules/system/boot/stage-1-init.sh
   nixos/trunk/modules/system/boot/stage-2-init.sh

Modified: nixos/trunk/modules/system/boot/stage-1-init.sh
==============================================================================
--- nixos/trunk/modules/system/boot/stage-1-init.sh     Thu Oct 27 17:05:53 
2011        (r30064)
+++ nixos/trunk/modules/system/boot/stage-1-init.sh     Thu Oct 27 17:34:16 
2011        (r30065)
@@ -55,7 +55,7 @@
 mount -t sysfs none /sys
 mount -t tmpfs -o "mode=0755,size=@devSize@" none /dev
 mkdir -p /run
-mount -t tmpfs -o "mode=1777,size=@runSize@" none /run
+mount -t tmpfs -o "mode=0755,size=@runSize@" none /run
 
 
 # Process the kernel command line.

Modified: nixos/trunk/modules/system/boot/stage-2-init.sh
==============================================================================
--- nixos/trunk/modules/system/boot/stage-2-init.sh     Thu Oct 27 17:05:53 
2011        (r30064)
+++ nixos/trunk/modules/system/boot/stage-2-init.sh     Thu Oct 27 17:34:16 
2011        (r30065)
@@ -126,7 +126,7 @@
 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
_______________________________________________
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to