Fix seccomp initialisation on i686-linux

This commit is contained in:
Eelco Dolstra 2017-05-29 14:18:36 +02:00
parent 6cc6c15a2d
commit cf93397d3f
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -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 }) {