From d500d6e55917e12a3f98b39cf0d29b6c96de9667 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 21 Aug 2025 21:55:23 +0900 Subject: [PATCH] system/dbus: share host net ns for abstract Host abstract unix sockets are only accessible when also in the init net ns. Signed-off-by: Ophestra --- system/dbus/proc.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/system/dbus/proc.go b/system/dbus/proc.go index 76fe9d4..7c98282 100644 --- a/system/dbus/proc.go +++ b/system/dbus/proc.go @@ -98,9 +98,8 @@ func (p *Proxy) Start() error { for _, name := range upstreamPaths { z.Bind(name, name, 0) } - if len(upstreamPaths) == 0 { - z.HostAbstract = true - } + z.HostNet = len(upstreamPaths) == 0 + z.HostAbstract = z.HostNet // parent directories of bind paths sockDirPaths := make([]*container.Absolute, 0, 2)