zbus-old
zbus-old copied to clipboard
Allow user namespace friendly connection?
In GitLab by @lmazeyra on Nov 21, 2022, 16:11
Similarly to https://gitlab.freedesktop.org/dbus/dbus-python/-/issues/46, https://gitlab.freedesktop.org/dbus/dbus/-/issues/195 or https://github.com/systemd/systemd/pull/11785, it seems that zbus always sends user id when connecting to server, which prevent its use from a namespaced context.
Is there a way to make Auth/External requests without putting the uid (or with an empty parameter, not very clear for me what is really needed for this to work) ?
Thanks in advance for your help.
Thanks for filing this. I would not have any objections to adding this.
Is there a way to make Auth/External requests without putting the uid (or with an empty parameter, not very clear for me what is really needed for this to work) ?
I'm very confident this is going to fairly trivial. Mostly it should be about add a nice API to set the last parameter to None here.
In GitLab by @lmazeyra on Nov 22, 2022, 10:11
Hello, We tried putting None for the last parameter (without the nice API ;)), but this triggers another issue : “Error: ZBus(Handshake("Missing DATA data"))”. It seems that in this case there is a supplemental "DATA" empty answer from server that has to be replied (as explained here : https://github.com/systemd/systemd/pull/11785/commits/1ed4723d38cd0d1423c8fe650f90fa86007ddf55).
Ah ok, not super trivial then. :smile: