about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-05-29T12·18+0200
committerEelco Dolstra <edolstra@gmail.com>2017-05-29T14·14+0200
commitcf93397d3f1d2a8165a100482d07b7f4b7e5bf7f (patch)
tree2f77bbad5c0038860d04477a73201cb53031770a /src
parent6cc6c15a2d50d0021d7242e9806ed6d54538de17 (diff)
Fix seccomp initialisation on i686-linux
Diffstat (limited to 'src')
-rw-r--r--src/libstore/build.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 06d259606661..b6293c15ebcb 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 }) {