[PATCH] unit: don't specify tcp hostname in dbus config
Martin Hundebøll <[email protected]> Mon, 17 Jun 2024 14:29:38 +0200
| Newsgroups | dev.linux.lists.ell |
|---|---|
| Message-ID | <[email protected]> |
Testing dbus with no network interfaces available on the host fails with: dbus-daemon[291]: Failed to start message bus: Failed to lookup host/port: "*:14046": Name or service not known (-2) Seems like "*" isn't a valid hostname in such cases: https://bugs.freedesktop.org/show_bug.cgi?id=28979 According to the linked issue, the fix is to simply omit the host= and bind= parameters in the config. --- unit/dbus.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unit/dbus.conf b/unit/dbus.conf index 5fe41a9ad6a6..3651e44538b1 100644 --- a/unit/dbus.conf +++ b/unit/dbus.conf @@ -7,7 +7,7 @@ <allow_anonymous /> <listen>unix:path=/tmp/ell-test-bus</listen> - <listen>tcp:host=localhost,bind=*,port=14046,family=ipv4</listen> + <listen>tcp:port=14046</listen> <apparmor mode="disabled" /> <policy context="default"> -- 2.45.2