Skip to content

Commit

Permalink
Fix seccomp initialisation on i686-linux
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed May 29, 2017
1 parent 6cc6c15 commit cf93397
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libstore/build.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) {
Expand Down

0 comments on commit cf93397

Please sign in to comment.