From 6e7ddb2d2ec6b163dc2c178bc4d73b5943f51206 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 15 Mar 2025 23:57:44 +0900 Subject: helper: eliminate commandContext replacement This is done more cleanly by modifying Args in cmdF. Signed-off-by: Ophestra --- dbus/proxy.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dbus/proxy.go') diff --git a/dbus/proxy.go b/dbus/proxy.go index 5e92e341..e7785fd8 100644 --- a/dbus/proxy.go +++ b/dbus/proxy.go @@ -5,6 +5,7 @@ import ( "errors" "fmt" "io" + "os/exec" "sync" "git.gensokyo.uk/security/fortify/helper" @@ -26,6 +27,7 @@ type Proxy struct { name string session [2]string system [2]string + CmdF func(cmd *exec.Cmd) sysP bool seal io.WriterTo -- cgit v1.3.1