aboutsummaryrefslogtreecommitdiffhomepage
path: root/fst
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-01-20 21:12:39 +0900
committerOphestra <cat@gensokyo.uk>2025-01-20 21:12:39 +0900
commit27f5922d5c4d4432246d6de6eb0d81d574cdc8c7 (patch)
tree7eb0205f8f0e7a6211f566efa354d9794195e7d8 /fst
parent2cf1f46ea235fd533a69ded5d439ffddba049eab (diff)
fst: include syscall filter configuration
This value is passed through to shim. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'fst')
-rw-r--r--fst/config.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/fst/config.go b/fst/config.go
index 7075c6a0..171c29f7 100644
--- a/fst/config.go
+++ b/fst/config.go
@@ -31,6 +31,8 @@ type ConfinementConfig struct {
Outer string `json:"home"`
// bwrap sandbox confinement configuration
Sandbox *SandboxConfig `json:"sandbox"`
+ // seccomp syscall filter configuration
+ Syscall *SyscallConfig `json:"syscall"`
// extra acl entries to append
ExtraPerms []*ExtraPermConfig `json:"extra_perms,omitempty"`
@@ -45,6 +47,14 @@ type ConfinementConfig struct {
Enablements system.Enablements `json:"enablements"`
}
+type SyscallConfig struct {
+ DenyDevel bool `json:"deny_devel"`
+ Multiarch bool `json:"multiarch"`
+ Linux32 bool `json:"linux32"`
+ Can bool `json:"can"`
+ Bluetooth bool `json:"bluetooth"`
+}
+
type ExtraPermConfig struct {
Ensure bool `json:"ensure,omitempty"`
Path string `json:"path"`