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:
parent
35247c4c9f
commit
f4279bcde0
3 changed files with 54 additions and 29 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue