dbus2 / zbus-old

Rust D-Bus crate.
https://gitlab.freedesktop.org/dbus/zbus
Other
49 stars 13 forks source link

support seteuid usecases #288

Closed zeenix closed 1 year ago

zeenix commented 1 year ago

In GitLab by @blueForestIcarus1 on Sep 28, 2022, 05:02

Currently the code uses Uid::current internally. This makes it impossible for the root user to connect to other user's dbus instances by means of seteuid.

To support this, switch to Uid::effective.

Possible issues:

I am not aware of any normal cases where the euid would be set without the library users explicitly setting it. And if that is happening, it seems unlikely that zbus's current behavior is usefull. So I don't expect this will break any existing use-cases.

zeenix commented 1 year ago

mentioned in commit bafd1c79ea72443d1d5714068bf963e560399a3c