diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-04 20:27:27 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-04 20:31:14 +0900 |
| commit | 9462af08f38fefe40d985383d8825258a6d1f0a8 (patch) | |
| tree | 3543a33e3872e854e46187287f5fa5f9d935a102 /internal | |
| parent | a5f0aa3f3077cb7bf3cbf7ac9e707ba165aceb4a (diff) | |
system/dbus: dump buffer internally
This should have been an implementation detail and should not be up to the caller to call it.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/app/finalise.go | 6 | ||||
| -rw-r--r-- | internal/app/process.go | 3 |
2 files changed, 1 insertions, 8 deletions
diff --git a/internal/app/finalise.go b/internal/app/finalise.go index d2459421..39e1649c 100644 --- a/internal/app/finalise.go +++ b/internal/app/finalise.go @@ -52,8 +52,6 @@ type outcome struct { // initial [hst.Config] gob stream for state data; // this is prepared ahead of time as config is clobbered during seal creation ct io.WriterTo - // dump dbus proxy message buffer - dbusMsg func() user hsuUser sys *system.I @@ -548,13 +546,11 @@ func (k *outcome) finalise(ctx context.Context, msg container.Msg, config *hst.C sessionPath, systemPath := share.instance().Append("bus"), share.instance().Append("system_bus_socket") // configure dbus proxy - if f, err := k.sys.ProxyDBus( + if err := k.sys.ProxyDBus( config.SessionBus, config.SystemBus, sessionPath, systemPath, ); err != nil { return err - } else { - k.dbusMsg = f } // share proxy sockets diff --git a/internal/app/process.go b/internal/app/process.go index 1687c868..29181ea5 100644 --- a/internal/app/process.go +++ b/internal/app/process.go @@ -134,9 +134,6 @@ func (ms mainState) beforeExit(isFault bool) { perror(err, "close wayland security context") } } - if ms.k.dbusMsg != nil { - ms.k.dbusMsg() - } } if ms.uintptr&mainNeedsRevert != 0 { |
