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

Don't do vfork in conjunction with setuid

This commit is contained in:
Eelco Dolstra 2014-12-10 18:01:01 +01:00
parent 0e8fc118b3
commit 851b47bd7d
2 changed files with 5 additions and 0 deletions

View file

@ -1914,6 +1914,8 @@ void DerivationGoal::startBuilder()
builderOut.create();
/* Fork a child to build the package. */
ProcessOptions options;
options.allowVfork = !buildUser.enabled();
pid = startProcess([&]() {
runChild();
});