zbus-old icon indicating copy to clipboard operation
zbus-old copied to clipboard

Allow user namespace friendly connection?

Open zeenix opened this issue 3 years ago • 3 comments
trafficstars

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.

zeenix avatar Nov 21 '22 15:11 zeenix

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.

zeenix avatar Nov 21 '22 20:11 zeenix

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).

zeenix avatar Nov 22 '22 09:11 zeenix

Ah ok, not super trivial then. :smile:

zeenix avatar Nov 22 '22 15:11 zeenix