1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 04:21:16 +02:00

* Don't run setuid root when build-users is empty.

* Send startup errors to the client.
This commit is contained in:
Eelco Dolstra 2006-12-03 16:25:19 +00:00
parent 35247c4c9f
commit f4279bcde0
3 changed files with 54 additions and 29 deletions

View file

@ -244,7 +244,7 @@ static void setuidInit()
could also modify the Nix executables (say, replace them by a
Trojan horse), so the problem is already there. */
#if 0 && HAVE_SETRESUID
#if HAVE_SETRESUID
if (setresuid(nixUid, nixUid, nixUid)) abort();
if (setresgid(nixGid, nixGid, nixGid)) abort();
#elif HAVE_SETREUID