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

Mantas Mikulėnas grawity at gmail.com
Tue Jan 21 16:05:07 UTC 2025


On 2025-01-21 17:00, Erik Slagter wrote:
> On 21-01-2025 15:34, Cristian Rodríguez wrote:
>> Come on..if you do that just configure stunnel to do what you want
>> with PSK auth. it supports all sorts of sockets and provides you with
>> the minimal security you need.
> 
> I was going to say that stunnel can't connect to a unix socket, but I 
> just checked and apparently it (now) can. That's why I was using socat. 
> This may be interesting. If it works I may even be able to expose the 
> session bus this way, which makes it all a lot less complex.

Either stunnel or socat might work long as you don't attempt to use 
programs which expect to be able to attach file descriptors to D-Bus 
messages. Otherwise they'll "successfully" negotiate this capability 
during the protocol handshake but then the sent FDs will disappear.


More information about the systemd-devel mailing list