From ff6becafa8efc2f7e6f2b9b889ba4adf20b8d524 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 --- 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 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;