From cf93397d3f1d2a8165a100482d07b7f4b7e5bf7f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 29 May 2017 14:18:36 +0200 Subject: [PATCH] Fix seccomp initialisation on i686-linux --- src/libstore/build.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 06d259606..b6293c15e 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -2311,7 +2311,8 @@ void setupSeccomp() seccomp_release(ctx); }); - if (seccomp_arch_add(ctx, SCMP_ARCH_X86) != 0) + if (settings.thisSystem == "x86_64-linux" && + seccomp_arch_add(ctx, SCMP_ARCH_X86) != 0) throw SysError("unable to add 32-bit seccomp architecture"); for (int perm : { S_ISUID, S_ISGID }) {