From 3d949f98e4725be32a93df3730e2d2b2250f185d Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 2 Aug 2021 12:58:32 +0200 Subject: [PATCH] firewalld: make D-Bus calls against unique name for firewalld service As we keep track of the current name owner, use its unique name for the D-Bus requests. We also track when the name owner changes, so at the point when we make the D-Bus call, the current name owner was still running. We should talk to it directly. If at the same time, firewalld restarts, we go through our usual tracking of the name owner and will retry -- but always talking to the unique name. --- src/core/nm-firewalld-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/nm-firewalld-manager.c b/src/core/nm-firewalld-manager.c index 3c80b45772..7d0b2bea30 100644 --- a/src/core/nm-firewalld-manager.c +++ b/src/core/nm-firewalld-manager.c @@ -342,7 +342,7 @@ _handle_dbus_start(NMFirewalldManager *self, NMFirewalldManagerCallId *call_id) call_id->dbus.cancellable = g_cancellable_new(); g_dbus_connection_call(priv->dbus_connection, - FIREWALL_DBUS_SERVICE, + priv->name_owner, FIREWALL_DBUS_PATH, FIREWALL_DBUS_INTERFACE_ZONE, dbus_method,