aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-21 21:55:23 +0900
committerOphestra <cat@gensokyo.uk>2025-08-21 21:55:23 +0900
commitd500d6e55917e12a3f98b39cf0d29b6c96de9667 (patch)
treea1d1b1302972400e4ec12d8e62249e8d4328d142
parent5b73316ae03cd56161de65be25a3b716d9ba7d78 (diff)
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 <cat@gensokyo.uk>
-rw-r--r--system/dbus/proc.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/system/dbus/proc.go b/system/dbus/proc.go
index 76fe9d45..7c982824 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)