Nix/src/libutil
Eelco Dolstra 47f87072ad * A very dirty hack to make setuid installations a bit nicer to use.
Previously there was the problem that all files read by nix-env
  etc. should be reachable and readable by the Nix user.  So for
  instance building a Nix expression in your home directory meant that
  the home directory should have at least g+x or o+x permission so
  that the Nix user could reach the Nix expression.  Now we just
  switch back to the original user just prior to reading sources and
  the like.  The places where this happens are somewhat arbitrary,
  however.  Any scope that has a live SwitchToOriginalUser object in
  it is executed as the original user.

* Back out r1385.  setreuid() sets the saved uid to the new
  real/effective uid, which prevents us from switching back to the
  original uid.  setresuid() doesn't have this problem (although the
  manpage has a bug: specifying -1 for the saved uid doesn't leave it
  unchanged; an explicit value must be specified).
2004-09-09 21:12:53 +00:00
..
archive.cc * Catch SIGINT to terminate cleanly when the user tries to interrupt 2004-01-15 20:23:55 +00:00
archive.hh * Source tree refactoring. 2003-11-18 10:47:59 +00:00
aterm.cc * Allow integer bindings in derivations. 2003-11-25 12:05:48 +00:00
aterm.hh * Allow integer bindings in derivations. 2003-11-25 12:05:48 +00:00
hash.cc * Source tree refactoring. 2003-11-18 10:47:59 +00:00
hash.hh * Source tree refactoring. 2003-11-18 10:47:59 +00:00
Makefile.am * Pass SYSTEM through config.h, and allow spaces. 2004-04-23 15:16:08 +00:00
md5.c * Source tree refactoring. 2003-11-18 10:47:59 +00:00
md5.h * Source tree refactoring. 2003-11-18 10:47:59 +00:00
test-aterm.cc * Source tree refactoring. 2003-11-18 10:47:59 +00:00
util.cc * The default verbosity level of all Nix commands is now lvlInfo. 2004-08-18 12:19:06 +00:00
util.hh * A very dirty hack to make setuid installations a bit nicer to use. 2004-09-09 21:12:53 +00:00