[systemd-devel] dbus-broker can be used for a "user" type bus accessible over tcp or not?

Lennart Poettering lennart at poettering.net
Mon Jan 20 21:01:31 UTC 2025


On Mo, 20.01.25 18:53, Erik Slagter (erik at slagter.name) wrote:

> Hi,
>
> I am trying to have a remotely accessible dbus. I'd love to discuss all
> considerations, but for the moment let's just assume I need it.

Sorry, but letting D-Bus listen on TCP is a terrible idea, there's not
sane authentication let alone encryption. It's not built for
that.

If you want remoting, then connect to a remote bus via ssh, systemd's
sd-bus makes that reasonably easy. See sd_bus_open_system_remote().

But please, don't do unencrypted D-Bus remotely.

xLennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list