diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-30 22:55:00 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-30 22:55:00 +0900 |
| commit | 7f2c0af5ad6ad660c7b4d7d89a5a0b34243b7cee (patch) | |
| tree | 81ab5fdf580dc50037de90473bce8de5b82fa965 /fst | |
| parent | 297b444dfb6adb71d5d1e61ea1b5aff16683896e (diff) | |
fst: set multiarch bit
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'fst')
| -rw-r--r-- | fst/sandbox.go | 4 |
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 */ |
