lix/src/libstore
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
..
db.cc * Quadruple the Berkeley DB locking limits to get rid of out of memory 2004-08-31 10:50:08 +00:00
db.hh * Added a switch `--fallback'. From the manual: 2004-06-28 10:42:57 +00:00
gc.cc * `--min-age' flag in nix-store and nix-collect-garbage to only delete 2004-08-25 16:54:08 +00:00
gc.hh * `--min-age' flag in nix-store and nix-collect-garbage to only delete 2004-08-25 16:54:08 +00:00
globals.cc * The default verbosity level of all Nix commands is now lvlInfo. 2004-08-18 12:19:06 +00:00
globals.hh * Added a switch `--fallback'. From the manual: 2004-06-28 10:42:57 +00:00
Makefile.am * Put the garbage collector in nix-store: operation `--gc', 2004-08-25 11:43:49 +00:00
misc.cc * Big refactoring. Move to a much more explicitly state machine based 2004-06-18 18:09:32 +00:00
normalise.cc * Removed nrWaitees field. It was redundant with waitees.size() and 2004-08-30 11:51:36 +00:00
normalise.hh * Put the garbage collector in nix-store: operation `--gc', 2004-08-25 11:43:49 +00:00
pathlocks.cc * True parallel builds. Nix can now run as many build jobs in 2004-05-11 18:05:44 +00:00
pathlocks.hh * True parallel builds. Nix can now run as many build jobs in 2004-05-11 18:05:44 +00:00
references.cc * Catch SIGINT to terminate cleanly when the user tries to interrupt 2004-01-15 20:23:55 +00:00
references.hh * libnix -> libstore. 2003-11-18 10:55:27 +00:00
store.cc * A very dirty hack to make setuid installations a bit nicer to use. 2004-09-09 21:12:53 +00:00
store.hh * Main the `substitutes-rev' table again, but now in a way that 2004-08-31 16:13:10 +00:00
storeexpr.cc * Changed the extension for store expressions from ".nix" to ".store" 2004-01-12 10:44:48 +00:00
storeexpr.hh * "Nix expression" -> "store expression". 2003-11-18 11:22:29 +00:00
test-builder-1.sh * libnix -> libstore. 2003-11-18 10:55:27 +00:00
test-builder-2.sh * libnix -> libstore. 2003-11-18 10:55:27 +00:00