Skip to contentSkip to conversation

Fix DBus auth issues on Fedora

RFC New James Prestwood 1 participant 2 messages Mar 24, 2020

lore
Share & tools
lore
#0 lore raw

cover Fix DBus auth issues on Fedora

This 'fixes' test-runner DBus auth issues on Fedora and maybe other system. I say 'fixes' because all its doing is allowing anonymous access to the bus vs finding a solution to the real problem. I (and I believe Andrew) have been carrying similar patches in order to get test-runner to work on Fedora.

I have tried diagnosing this without any success. Since this is only for use in test-runner I thought a solution (at least temporarily) would be to allow anonymous access to DBus.

OR maybe someone will see this and have some idea as to what is going on.

James Prestwood (1):
test-runner: allow anonymous Dbus access

 tools/test-runner.c | 2 ++
 1 file changed, 2 insertions(+)
Signature · 1 line
2.21.1
#1 lore raw

RFC 1/1 test-runner: allow anonymous Dbus access

The dbus config file doesn't play well with Fedora.

---
 tools/test-runner.c | 2 ++
 1 file changed, 2 insertions(+)
tools/test-runner.c +2 -0
index 320dea0b..1be3f640 100644
@@ -665,6 +665,8 @@ static void create_dbus_system_conf(void)
 	fputs("<type>system</type>\n", fp);
 	fputs("<listen>unix:path=/run/dbus/system_bus_socket</listen>\n", fp);
 	fputs("<limit name=\"reply_timeout\">2147483647</limit>", fp);
+	fputs("<auth>ANONYMOUS</auth>\n", fp);
+	fputs("<allow_anonymous/>\n", fp);
 	fputs("<policy context=\"default\">\n", fp);
 	fputs("<allow user=\"*\"/>\n", fp);
 	fputs("<allow own=\"*\"/>\n", fp);
Signature · 1 line
2.21.1