From 1e0f1dab1e3055704dea8e942d2c10a42a177198 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 30 May 2017 12:37:04 +0200 Subject: [PATCH] Require seccomp only in multi-user setups (cherry picked from commit ff6becafa8efc2f7e6f2b9b889ba4adf20b8d524) --- src/libstore/build.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) {