From e41e6a65bb2ca992fd471435ed9dd4f6006ad576 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 9 Aug 2010 10:59:20 +0000 Subject: [PATCH] * 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. svn path=/nixos/trunk/; revision=23052 --- modules/system/boot/stage-2-init.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/system/boot/stage-2-init.sh b/modules/system/boot/stage-2-init.sh index 7070683d9b9..8859e5716ff 100644 --- a/modules/system/boot/stage-2-init.sh +++ b/modules/system/boot/stage-2-init.sh @@ -118,6 +118,11 @@ rm -rf /var/log/upstart #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