aboutsummaryrefslogtreecommitdiffhomepage
path: root/system/dbus
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-19 23:39:14 +0900
committerOphestra <cat@gensokyo.uk>2025-08-19 23:39:14 +0900
commit6947ff04e067bc7df1d9cf0ad993e3cab3568bf4 (patch)
treed9ad832f22daefaa8ff4560111f5fd539610404a /system/dbus
parent140fe212370b99c8430bdf04155479bdc16c9ee8 (diff)
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 <cat@gensokyo.uk>
Diffstat (limited to 'system/dbus')
-rw-r--r--system/dbus/proc.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/system/dbus/proc.go b/system/dbus/proc.go
index 6607ef19..76fe9d45 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)