mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
Split LinuxDerivationBuilder
This restores doing seccomp/personality initialization even when sandboxing is disabled. https://hydra.nixos.org/build/298482132
This commit is contained in:
parent
b7fd872147
commit
4dc419eaec
2 changed files with 20 additions and 7 deletions
|
@ -2157,7 +2157,7 @@ std::unique_ptr<DerivationBuilder> makeDerivationBuilder(
|
|||
}
|
||||
|
||||
if (useSandbox)
|
||||
return std::make_unique<LinuxDerivationBuilder>(
|
||||
return std::make_unique<ChrootLinuxDerivationBuilder>(
|
||||
store,
|
||||
std::move(miscMethods),
|
||||
std::move(params));
|
||||
|
@ -2172,6 +2172,11 @@ std::unique_ptr<DerivationBuilder> makeDerivationBuilder(
|
|||
std::move(miscMethods),
|
||||
std::move(params),
|
||||
useSandbox);
|
||||
#elif defined(__linux__)
|
||||
return std::make_unique<LinuxDerivationBuilder>(
|
||||
store,
|
||||
std::move(miscMethods),
|
||||
std::move(params));
|
||||
#else
|
||||
if (useSandbox)
|
||||
throw Error("sandboxing builds is not supported on this platform");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue