From 733ad43d3fd48350f744ab0861b10da5ea2559ee Mon Sep 17 00:00:00 2001 From: James Henstridge Date: Wed, 26 May 2021 20:18:33 +0800 Subject: [PATCH] module-portal: direct GetConnectionUnixProcessID call to /org/freedesktop/DBus The D-Bus specification says that the message bus accepts method calls on other object paths for backwards compatibility, and may reject security sensitive calls on unexpected object paths: https://dbus.freedesktop.org/doc/dbus-specification.html#message-bus-messages --- src/modules/module-portal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module-portal.c b/src/modules/module-portal.c index e7f648a84..fdbe705c5 100644 --- a/src/modules/module-portal.c +++ b/src/modules/module-portal.c @@ -173,7 +173,7 @@ static void update_portal_pid(struct impl *impl) impl->portal_pid = 0; m = dbus_message_new_method_call("org.freedesktop.DBus", - "/", + "/org/freedesktop/DBus", "org.freedesktop.DBus", "GetConnectionUnixProcessID");