Author: eelco
Date: Mon Aug  9 10:59:20 2010
New Revision: 23052
URL: https://svn.nixos.org/websvn/nix/?rev=23052&sc=1

Log:
* Make sure that /tmp/.ICE-unix is owned by root and has 1777
  permissions.  Otherwise it ends up being owned by the first user to
  log in, and other users' iceauth calls fail.

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

Modified: nixos/trunk/modules/system/boot/stage-2-init.sh
==============================================================================
--- nixos/trunk/modules/system/boot/stage-2-init.sh     Mon Aug  9 07:42:43 
2010        (r23051)
+++ nixos/trunk/modules/system/boot/stage-2-init.sh     Mon Aug  9 10:59:20 
2010        (r23052)
@@ -118,6 +118,11 @@
 #echo " done"
 
 
+# Get rid of ICE locks and ensure that it's owned by root.
+rm -rf /tmp/.ICE-unix
+mkdir -m 1777 /tmp/.ICE-unix
+
+
 # This is a good time to clean up /nix/var/nix/chroots.  Doing an `rm
 # -rf' on it isn't safe in general because it can contain bind mounts
 # to /nix/store and other places.  But after rebooting these are all
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to