Require seccomp only in multi-user setups

This commit is contained in:
Eelco Dolstra 2017-05-30 12:37:04 +02:00
parent 1d9ab273ba
commit ff6becafa8
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -2345,7 +2345,11 @@ void DerivationGoal::runChild()
commonChildInit(builderOut);
setupSeccomp();
try {
setupSeccomp();
} catch (...) {
if (buildUser) throw;
}
bool setUser = true;