diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 9a7372e3..ec66f80b 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -2301,7 +2301,11 @@ void DerivationGoal::runChild() commonChildInit(builderOut); - setupSeccomp(); + try { + setupSeccomp(); + } catch (...) { + if (buildUser) throw; + } #if __linux__ if (useChroot) {