Re: Unexpected gdbus behaviour during PAM authentication
Bastien Nocera <[email protected]>
| Newsgroups | gmane.comp.freedesktop.dbus |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 2017-01-16 at 11:35 +0000, Simon McVittie wrote: > On Fri, 13 Jan 2017 at 16:47:21 +0100, Bastien Nocera wrote: > > GDBus's threads and PAM really don't mix. You'll need to either use > > something like dbus-glib, which is single-threaded and sync, move > > your > > D-Bus code to a small helper you'd talk to over Unix sockets (yeah, > > I > > know...), or wait until PAM dies. > > Please don't use dbus-glib, particularly for security-sensitive code. > It is unmaintained (I am its unmaintainer) and has several bits of > irretrievably bad design. > > Single-threaded alternatives to dbus-glib include: > > - dbus' libdbus used directly (it's a verbose low-level API, but > still > less bad than dbus-glib's inconvenience layer over it) > > - systemd's sd-bus (Linux-specific) Code was written when this code was still maintained. So any port would have to wait... _______________________________________________ dbus mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dbus