From 9a239fa1a5ad2ff248ca7a9d39342f66926c9fef Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 22 Jan 2025 01:51:10 +0900 Subject: helper/bwrap: integrate seccomp into helper interface This makes API usage much cleaner, and encapsulates all bwrap arguments in argsWt. Signed-off-by: Ophestra --- dbus/proxy.go | 2 +- dbus/run.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'dbus') 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 } -- cgit v1.3.1