So I just quickly hacked up a server/client application that would just
send some texts from client to server. I am using the
system bus.<br>
<br>
My actual application and this test application live on the same box so using the same dbus daemon and system.conf file.<br>
<br>
My little test works even though I setuid the client to nobody and
tried running as various users. My server process is run as
root. This is while my actual application, with a
similar setup, does not work.<br>
<br>
I did an strace on both actual app and this test app.<br>
<br>
The difference I see is that on the test app, AUTH EXTERNAL receives an OK.<br>
But on my actual app, AUTH EXTERNAL and AUTH DBUS_COOKIE are both rejected (hence failed to connect).<br>
<br>
And since they are using the same system.conf, whatever I have in there should allow both situations to work. <br>
<br>
Is there anything else that AUTH XXX relies on so that it accept authentication?<br>
<br>
I am using dbus_bus_get() and dbus_bus_get_private() to connect to the system bus.<br>
<br>
<br>
-vincent<br>
<br><br><div><span class="gmail_quote">On 6/29/06, <b class="gmail_sendername">Havoc Pennington</b> <<a href="mailto:hp@redhat.com">hp@redhat.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Mark S. Townsley wrote:<br>><br>><br>> So I am still having the same errors. My server is root. As long as<br>> the client is<br>> root, they connect just fine. If the client is run as someone else, I<br>
> get "No reply within specified time".<br>> And both server and client live in the same machine so there should not<br>> be any firewall.<br><br>I mean firewall metaphorically, the firewall-like rules within the bus.
<br><br>> When is user="*" applicable?<br><br>Always, but it only controls connection. The error you're seeing can be<br>caused by a security policy that blocks the outgoing message or its reply.<br><br>The verbose log from the bus when you get the error would probably help.
<br>Post it to the list if it doesn't make sense to you...<br><br>Havoc<br><br></blockquote></div><br>