diff options
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/build.cc | 3 |
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 }) { |