From 53d4e341e13a258f1507874a48311e7ae014b615 Mon Sep 17 00:00:00 2001 From: Georgia Garcia Date: Mon, 27 Mar 2023 16:11:36 -0300 Subject: [PATCH] tests: force dbus-daemon to generate an abstract socket dbus 1.14.4 changed the behavior of unix:tmpdir to be equivalent to unix:dir, which cases dbus-daemon to generate path based sockets, instead of the previous abstract sockets. [1] In this change we force dbus-daemon to generate an abstract socket by specifying the abstract socket address in the command. [1] https://gitlab.freedesktop.org/dbus/dbus/-/blob/dbus-1.14/NEWS#L64 Signed-off-by: Georgia Garcia --- tests/regression/apparmor/dbus.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/regression/apparmor/dbus.inc b/tests/regression/apparmor/dbus.inc index 79c9f5e5a..d30113235 100755 --- a/tests/regression/apparmor/dbus.inc +++ b/tests/regression/apparmor/dbus.inc @@ -128,7 +128,8 @@ start_dbus_daemon() return 1 fi - out=$(dbus-daemon --fork --print-pid --print-address --config-file=dbus.conf) + bus_addr=$(mktemp --dry-run /tmp/dbus-XXXXXX) + out=$(dbus-daemon --fork --print-pid --print-address --address="unix:abstract=$bus_addr" --config-file=dbus.conf) if [ $? -ne 0 ] then echo "Failed to start DBus daemon"