aboutsummaryrefslogtreecommitdiffhomepage
path: root/dbus/proxy.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-03-17 00:13:14 +0900
committerOphestra <cat@gensokyo.uk>2025-03-17 00:13:14 +0900
commit44277dc0f1fd1806f5ceea34246a4c805a06b61b (patch)
tree568e10c40ebace8e7fdf39c5afd5625db45e7729 /dbus/proxy.go
parentbc54db54d2b33e5ed29667be69d0c07eed9bb007 (diff)
dbus: run in native sandbox
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'dbus/proxy.go')
-rw-r--r--dbus/proxy.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/dbus/proxy.go b/dbus/proxy.go
index e7785fd8..209ae573 100644
--- a/dbus/proxy.go
+++ b/dbus/proxy.go
@@ -9,7 +9,6 @@ import (
"sync"
"git.gensokyo.uk/security/fortify/helper"
- "git.gensokyo.uk/security/fortify/helper/bwrap"
)
// ProxyName is the file name or path to the proxy program.
@@ -20,16 +19,18 @@ var ProxyName = "xdg-dbus-proxy"
// Once sealed, configuration changes will no longer be possible and attempting to do so will result in a panic.
type Proxy struct {
helper helper.Helper
- bwrap *bwrap.Config
ctx context.Context
cancel context.CancelCauseFunc
name string
session [2]string
system [2]string
- CmdF func(cmd *exec.Cmd)
+ CmdF func(any)
sysP bool
+ CommandContext func(ctx context.Context) (cmd *exec.Cmd)
+ FilterF func([]byte) []byte
+
seal io.WriterTo
lock sync.RWMutex
}