aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-05-29 14:18:36 +0200
committerEelco Dolstra <edolstra@gmail.com>2017-05-29 16:14:10 +0200
commitcf93397d3f1d2a8165a100482d07b7f4b7e5bf7f (patch)
tree2f77bbad5c0038860d04477a73201cb53031770a /src/libstore
parent6cc6c15a2d50d0021d7242e9806ed6d54538de17 (diff)
Fix seccomp initialisation on i686-linux
Diffstat (limited to 'src/libstore')
-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 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 }) {