aboutsummaryrefslogtreecommitdiffhomepage
path: root/fst
diff options
context:
space:
mode:
Diffstat (limited to 'fst')
-rw-r--r--fst/sandbox.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/fst/sandbox.go b/fst/sandbox.go
index fadf39e3..8bbc0769 100644
--- a/fst/sandbox.go
+++ b/fst/sandbox.go
@@ -97,6 +97,10 @@ func (s *SandboxConfig) ToContainer(sys SandboxSys, uid, gid *int) (*sandbox.Par
Seccomp: s.Seccomp,
}
+ if s.Multiarch {
+ container.Seccomp |= seccomp.FlagMultiarch
+ }
+
/* this is only 4 KiB of memory on a 64-bit system,
permissive defaults on NixOS results in around 100 entries
so this capacity should eliminate copies for most setups */