aboutsummaryrefslogtreecommitdiffhomepage
path: root/helper/bwrap/sequential.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-01-22 01:51:10 +0900
committerOphestra <cat@gensokyo.uk>2025-01-22 01:52:57 +0900
commit9a239fa1a5ad2ff248ca7a9d39342f66926c9fef (patch)
tree09efadb2ddf4eaeaf153d7e4b7d73e1b20d2fc1a /helper/bwrap/sequential.go
parent82029948e6d8d047edc02ccff354e16c419e5742 (diff)
helper/bwrap: integrate seccomp into helper interface
This makes API usage much cleaner, and encapsulates all bwrap arguments in argsWt. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'helper/bwrap/sequential.go')
-rw-r--r--helper/bwrap/sequential.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/helper/bwrap/sequential.go b/helper/bwrap/sequential.go
index 42a4b2b5..1776c235 100644
--- a/helper/bwrap/sequential.go
+++ b/helper/bwrap/sequential.go
@@ -43,6 +43,9 @@ const (
Overlay
TmpOverlay
ROOverlay
+
+ SyncFd
+ Seccomp
)
var positionalArgs = [...]string{
@@ -70,6 +73,9 @@ var positionalArgs = [...]string{
Overlay: "--overlay",
TmpOverlay: "--tmp-overlay",
ROOverlay: "--ro-overlay",
+
+ SyncFd: "--sync-fd",
+ Seccomp: "--seccomp",
}
type PermConfig[T FSBuilder] struct {