aboutsummaryrefslogtreecommitdiffhomepage
path: root/dbus
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 /dbus
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 'dbus')
-rw-r--r--dbus/proxy.go2
-rw-r--r--dbus/run.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/dbus/proxy.go b/dbus/proxy.go
index 9f78648c..59b887d2 100644
--- a/dbus/proxy.go
+++ b/dbus/proxy.go
@@ -66,7 +66,7 @@ func (p *Proxy) String() string {
return "(unsealed dbus proxy)"
}
-func (p *Proxy) Bwrap() []string {
+func (p *Proxy) BwrapStatic() []string {
return p.bwrap.Args()
}
diff --git a/dbus/run.go b/dbus/run.go
index addf5226..0a554bfb 100644
--- a/dbus/run.go
+++ b/dbus/run.go
@@ -110,7 +110,7 @@ func (p *Proxy) Start(ready chan error, output io.Writer, sandbox bool) error {
bc.Bind(k, k)
}
- h = helper.MustNewBwrap(bc, toolPath, p.seal, argF, nil)
+ h = helper.MustNewBwrap(bc, toolPath, p.seal, argF, nil, nil)
cmd = h.Unwrap()
p.bwrap = bc
}