nix-super/src
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
..
bin2c * "Fix expression" -> "Nix expression". 2003-11-18 12:06:07 +00:00
boost * This is also useful. 2004-06-18 16:52:31 +00:00
libexpr * A very dirty hack to make setuid installations a bit nicer to use. 2004-09-09 21:12:53 +00:00
libmain * A very dirty hack to make setuid installations a bit nicer to use. 2004-09-09 21:12:53 +00:00
libstore * A very dirty hack to make setuid installations a bit nicer to use. 2004-09-09 21:12:53 +00:00
libutil * A very dirty hack to make setuid installations a bit nicer to use. 2004-09-09 21:12:53 +00:00
log2xml * Do not close a nesting level twice after close() has been 2004-03-27 15:33:19 +00:00
nix-env * A very dirty hack to make setuid installations a bit nicer to use. 2004-09-09 21:12:53 +00:00
nix-hash * Allow linking against an external Berkeley DB / ATerm library. 2004-02-16 16:37:16 +00:00
nix-instantiate * Nix-instantiate now accepts sets of derivations (just like nix-env). 2004-07-01 14:25:26 +00:00
nix-store * Main the `substitutes-rev' table again, but now in a way that 2004-08-31 16:13:10 +00:00
Makefile.am * A very dirty hack to make setuid installations a bit nicer to use. 2004-09-09 21:12:53 +00:00