[systemd-devel] Direct connection between peers in sd-bus
Mantas Mikulėnas
grawity at gmail.com
Fri Jan 18 05:35:16 UTC 2019
On Fri, Jan 18, 2019 at 1:19 AM Stanislav Angelovič <angelovic.s at gmail.com>
wrote:
> Hi,
>
> In sd-bus, I guess it is possible to have a one-to-one connection between
> a service and a client, i.e. connection without D-bus daemon), am I right?
> If yes, is there any example (in systemd source tree or elsewhere) of
> sd-bus one-to-one communication usage that I could look at for inspiration
> and learning on how is that done?
>
Yes, that's how `systemctl` works when it has privileges.
See bus_connect_system_systemd() and bus_connect_user_systemd() in
src/shared/bus-util.c.
--
Mantas Mikulėnas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20190118/d99058b7/attachment.html>
More information about the systemd-devel
mailing list