[systemd-devel] D-feet displays an error message when using sd-bus

yves baumes ybaumes at gmail.com
Tue Oct 19 15:28:56 UTC 2021


Hello,

First I am not sure it is the correct place to ask questions about lib
sd-bus. Is it? Here is my issues:

I am trying to use the lib sd-bus, following this blog post:
http://0pointer.net/blog/the-new-sd-bus-api-of-systemd.html .

I am able to launch my own service on the *user* bus.
When I launch it on the *system* bus, problems appear.
First I had a permission denied issue, and to correct it I had to create a
configuration file in /etc/dbus-1/system.d/net.poettering.Calculator.conf .
As stated in
https://stackoverflow.com/questions/32828468/sd-bus-api-sd-bus-request-name-returns-permission-denied
.
Thus the executable launches perfectly (no more 'permission denied' errors).

Now I am trying to inspect the service with D-feet. The service is well
listed on the left pane: net.poettering.Calculator, but when I click on it,
I get an error window stating :
'net.poettering.Calculator: g-dbus-error-quark:
GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Rejected send message,
1 matched rules; type="method_call", sender=":-1.1996" (uid=1000
pid=3110822 comm="/usr/bin/python3 /usr/bin/d-feet" label"unconfined")
interface="org.freedesktop.DBus.Introspectable" member="Introspect" error
name ="(unset)" requested_reply="0" destination=net.poettering.Calculator"
(uid=0 pid=3110595 comm="./-bus-service" label="unconfined")(9)' .

When I close this error window, I then get no information in the right pane.

I am not sure I understand the reported error. What is it about? Does
someone have some clues about that? How can I remove this error?

Regards
Yves
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20211019/18caf6ed/attachment.htm>


More information about the systemd-devel mailing list