aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/spwayland.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-05 03:19:37 +0900
committerOphestra <cat@gensokyo.uk>2025-10-05 03:25:13 +0900
commit8ace2148326d85312a157e19e596978361e9285d (patch)
tree5f0214a6dd7b804b4bb2422c21d30e1b76a73f68 /internal/app/spwayland.go
parenteb5ee4fece0327b1183ae823d68e4cf4e3e1ced0 (diff)
system/wayland: hang up security-context-v1 internally
This should have been an implementation detail and should not be up to the caller to close. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/spwayland.go')
-rw-r--r--internal/app/spwayland.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/internal/app/spwayland.go b/internal/app/spwayland.go
index cf93c8df..130a2ed2 100644
--- a/internal/app/spwayland.go
+++ b/internal/app/spwayland.go
@@ -1,8 +1,6 @@
package app
import (
- "os"
-
"hakurei.app/container"
"hakurei.app/hst"
"hakurei.app/system/acl"
@@ -13,10 +11,6 @@ import (
type spWaylandOp struct {
// Path to host wayland socket. Populated during toSystem if DirectWayland is true.
SocketPath *container.Absolute
-
- // Address to write the security-context-v1 synchronisation fd [os.File] address to.
- // Only populated for toSystem.
- sync **os.File
}
func (s *spWaylandOp) toSystem(state *outcomeStateSys, config *hst.Config) error {
@@ -38,7 +32,7 @@ func (s *spWaylandOp) toSystem(state *outcomeStateSys, config *hst.Config) error
appID = "app.hakurei." + state.id.String()
}
// downstream socket paths
- state.sys.Wayland(s.sync, state.instance().Append("wayland"), socketPath, appID, state.id.String())
+ state.sys.Wayland(state.instance().Append("wayland"), socketPath, appID, state.id.String())
} else { // bind mount wayland socket (insecure)
state.msg.Verbose("direct wayland access, PROCEED WITH CAUTION")
state.ensureRuntimeDir()