Re: polkit fails to authenticate on dbus

Simon McVittie <simon.mcvittie-ZGY8ohtN/[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Organization Collabora Ltd.
Message-ID <[email protected]>
On 21/01/15 14:17, karu.pruun wrote:
> By the way, I found out that the UID string that polkitd on DragonFly
> uses in 'AUTH EXTERNAL . . .' is independent from what polkitd gets
> from getuid(). This is in contrast to correct operation e.g. on
> FreeBSD where that string is the hex encoded UID.

polkitd uses GDBus, part of the GIO module in GLib, so that's the place
to start looking to find out why polkitd is saying "hi, I'm uid
(uint32_t) -1" instead of "hi, I'm uid 0". My guess is that some API
call used by GLib is failing and returning -1, and GLib isn't catching
that failure.

If my theory is correct, then gdbus(1) and other tools that use GDBus
will fail to authenticate in exactly the same way polkitd does, but
libdbus applications like dbus-send(1) and dbus-monitor(1) might be
fine. Please try that and see what happens.

If I'm right, then https://bugzilla.gnome.org/enter_bug.cgi?product=glib
is the place to report GDBus bugs. The GLib people will probably have
the same policy we do, that DragonFlyBSD is only supported if its users
provide tested patches.

    S

_______________________________________________
dbus mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.