Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Allow user namespace friendly connection? #306

Open
zeenix opened this issue Nov 21, 2022 · 3 comments
Open

Allow user namespace friendly connection? #306

zeenix opened this issue Nov 21, 2022 · 3 comments
Labels
enhancement New feature or request zbus Issues/PRs related to zbus crate

Comments

@zeenix
Copy link
Collaborator

zeenix commented Nov 21, 2022

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 systemd/systemd#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
Copy link
Collaborator Author

zeenix commented Nov 21, 2022

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
Copy link
Collaborator Author

zeenix commented Nov 22, 2022

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 : systemd/systemd@1ed4723).

@zeenix
Copy link
Collaborator Author

zeenix commented Nov 22, 2022

Ah ok, not super trivial then. 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request zbus Issues/PRs related to zbus crate
Projects
None yet
Development

No branches or pull requests

1 participant