diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-05-30 12:37:04 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-05-30 12:37:04 +0200 |
commit | ff6becafa8efc2f7e6f2b9b889ba4adf20b8d524 (patch) | |
tree | 24754d9fba619d642a99342570138a4732b570cf | |
parent | 1d9ab273bad34b004dfcfd486273d0df5fed1eca (diff) |
Require seccomp only in multi-user setups
-rw-r--r-- | src/libstore/build.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index b6293c15e..09cc2709a 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -2345,7 +2345,11 @@ void DerivationGoal::runChild() commonChildInit(builderOut); - setupSeccomp(); + try { + setupSeccomp(); + } catch (...) { + if (buildUser) throw; + } bool setUser = true; |