* 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
This commit is contained in:
Eelco Dolstra 2010-08-09 10:59:20 +00:00
parent 5041cdddbd
commit e41e6a65bb
1 changed files with 5 additions and 0 deletions
modules/system/boot

View File

@ -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