Skip to content

Commit

Permalink
Require seccomp only in multi-user setups
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed May 30, 2017
1 parent 1d9ab27 commit ff6beca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/libstore/build.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2345,7 +2345,11 @@ void DerivationGoal::runChild()

commonChildInit(builderOut);

setupSeccomp();
try {
setupSeccomp();
} catch (...) {
if (buildUser) throw;
}

bool setUser = true;

Expand Down

0 comments on commit ff6beca

Please sign in to comment.