Require seccomp only in multi-user setups

(cherry picked from commit ff6becafa8)
This commit is contained in:
Eelco Dolstra 2017-05-30 12:37:04 +02:00
parent 17da82e04d
commit 1e0f1dab1e
No known key found for this signature in database
GPG Key ID: 8170B4726D7198DE
1 changed files with 5 additions and 1 deletions

View File

@ -2301,7 +2301,11 @@ void DerivationGoal::runChild()
commonChildInit(builderOut);
setupSeccomp();
try {
setupSeccomp();
} catch (...) {
if (buildUser) throw;
}
#if __linux__
if (useChroot) {