mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
Require seccomp only in multi-user setups
(cherry picked from commit ff6becafa8
)
This commit is contained in:
parent
17da82e04d
commit
1e0f1dab1e
1 changed files with 5 additions and 1 deletions
|
@ -2301,7 +2301,11 @@ void DerivationGoal::runChild()
|
||||||
|
|
||||||
commonChildInit(builderOut);
|
commonChildInit(builderOut);
|
||||||
|
|
||||||
setupSeccomp();
|
try {
|
||||||
|
setupSeccomp();
|
||||||
|
} catch (...) {
|
||||||
|
if (buildUser) throw;
|
||||||
|
}
|
||||||
|
|
||||||
#if __linux__
|
#if __linux__
|
||||||
if (useChroot) {
|
if (useChroot) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue