lix/src/libexpr
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
..
eval.cc * Every real language has a `map' function. 2004-08-04 11:27:53 +00:00
eval.hh * Allow primops with more that 1 arguments. 2004-08-04 10:59:20 +00:00
lexer.l * Added plain lambdas, e.g., `let { id = x: x; const = x: y: x; }'. 2004-03-28 20:34:22 +00:00
Makefile.am * Allow primops with more that 1 arguments. 2004-08-04 10:59:20 +00:00
nixexpr.cc * When something goes wrong in the evaluation of a Nix expression, 2004-04-05 22:27:41 +00:00
nixexpr.hh * Allow primops with more that 1 arguments. 2004-08-04 10:59:20 +00:00
parser.cc * A very dirty hack to make setuid installations a bit nicer to use. 2004-09-09 21:12:53 +00:00
parser.hh * Use a map to lookup primops. 2004-02-04 16:03:29 +00:00
parser.y * When something goes wrong in the evaluation of a Nix expression, 2004-04-05 22:27:41 +00:00
primops.cc * Validate derivation names. In particular don't allow spaces. 2004-08-24 11:46:05 +00:00