aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst/container.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-07-01 20:23:33 +0900
committerOphestra <cat@gensokyo.uk>2025-07-01 22:11:32 +0900
commit1a8840bebc673672235b6e10b1b9386f24751757 (patch)
treed1e6772bfd685e2162d047e3640bd3ee55c1a1f7 /hst/container.go
parent1fb453dffe4c83866fedfa4590be30ec65e815ff (diff)
sandbox/seccomp: resolve rules natively
This enables loading syscall filter policies from external cross-platform config files. This also removes a significant amount of C code. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/container.go')
-rw-r--r--hst/container.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/hst/container.go b/hst/container.go
index 796b82e8..32ddef2e 100644
--- a/hst/container.go
+++ b/hst/container.go
@@ -11,7 +11,9 @@ type (
Hostname string `json:"hostname,omitempty"`
// extra seccomp flags
- Seccomp seccomp.FilterOpts `json:"seccomp"`
+ SeccompFlags seccomp.PrepareFlag `json:"seccomp_flags"`
+ // extra seccomp presets
+ SeccompPresets seccomp.FilterPreset `json:"seccomp_presets"`
// allow ptrace and friends
Devel bool `json:"devel,omitempty"`
// allow userns creation in container