From 6947ff04e067bc7df1d9cf0ad993e3cab3568bf4 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 19 Aug 2025 23:39:14 +0900 Subject: [PATCH] system/dbus/proc: host abstract only when not binding The test failure seems to be caused by an unrelated bug in xdg-dbus-proxy. Signed-off-by: Ophestra --- system/dbus/proc.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/system/dbus/proc.go b/system/dbus/proc.go index 6607ef1..76fe9d4 100644 --- a/system/dbus/proc.go +++ b/system/dbus/proc.go @@ -64,10 +64,6 @@ func (p *Proxy) Start() error { argF, func(z *container.Container) { z.SeccompFlags |= seccomp.AllowMultiarch z.SeccompPresets |= seccomp.PresetStrict - - // xdg-dbus-proxy fails with scoped abstract unix sockets despite pathname socket being available - z.HostAbstract = true - z.Hostname = "hakurei-dbus" if p.output != nil { z.Stdout, z.Stderr = p.output, p.output @@ -102,6 +98,9 @@ func (p *Proxy) Start() error { for _, name := range upstreamPaths { z.Bind(name, name, 0) } + if len(upstreamPaths) == 0 { + z.HostAbstract = true + } // parent directories of bind paths sockDirPaths := make([]*container.Absolute, 0, 2)