forked from lix-project/lix
Fix seccomp initialisation on i686-linux
This commit is contained in:
parent
6cc6c15a2d
commit
cf93397d3f
|
@ -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 }) {
|
||||
|
|
Loading…
Reference in a new issue