mirror of
https://github.com/NixOS/nix.git
synced 2024-10-31 14:20:52 +00:00
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 New Issue
Block a user