D-bus integration

hvjunk hvjunk at gmail.com
Mon Apr 15 14:36:23 AEST 2024

> On 14 Apr 2024, at 14:54, Luca Boccassi <bluca at debian.org> wrote:
>> I don't know much about the
>> D-bus protocol, but if a small D-bus client is just opening a unix
>> domain
>> socket and writing a message to it then we could possibly support it
>> using a standalone implementation, like we just did for systemd.
> Afraid not, D-Bus is a stateful protocol with client authentication and
> so much more, it's not something you really want to reimplement
> locally, using one of the available libraries is the only reasonable
> approach.

Which tells me all the reasons to not implement it inside/with OpenSSH, other than a side client handling things asynchronously….

some other challenges listed with d-bus in an attempt to do something beterer:

> There are de-facto two usable libraries for C projects, the first one
> is GDBus, provided by the GLib library, and pretty much requires buying
> into the whole GLib model of main loop and event processing. The second
> one is sd-bus, which is smaller and can be used in other event/main
> loops implementation and, I'm sure you'll be delighted to know, it's
> from libsystemd ;-)
> https://www.freedesktop.org/wiki/Software/DBusBindings/
> -- 
> Kind regards,
> Luca Boccassi
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev at mindrot.org
> https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

More information about the openssh-unix-dev mailing list