polkit fails to authenticate on dbus
karu.pruun
karu.pruun at gmail.com
Tue Jan 20 12:48:52 PST 2015
Hello
I am having troubles with dbus starting polkitd on my system
(DragonFlyBSD): polkitd fails to start since dbus rejects the three
attempts to authenticate via three different mechanisms available on
dbus (EXTERNAL, DBUS_COOKIE_SHA1, ANONYMOUS). I compared with FreeBSD
box which has (or at least should have) an identical setup for dbus
and where polkitd starts fine. The successful authentication with dbus
on FreeBSD looks like this (it's a ktrace output; the sendto goes from
polkit to dbus; receivefrom is from dbus to polkit):
---FreeBSD (successful)---
1579 polkitd CALL sendto(0x5,0x803076280,0x12,0x20000<MSG_NOSIGNAL>,0,0)
1579 polkitd GIO fd 5 wrote 18 bytes
"AUTH EXTERNAL 30\r
"
1579 polkitd RET sendto 18/0x12
. . .
1579 polkitd CALL recvfrom(0x5,0x80310f000,0x1000,0,0,0)
1579 polkitd GIO fd 5 read 37 bytes
"OK 42dd72d3f9cfe49615fb1f2154aabce1\r
"
1579 polkitd RET recvfrom 37/0x25
--- ---
whereas the unsuccessful DragonFly is this:
---DragonFly---
16116:1 0 polkitd 0.000006 CALL
sendto(0x5,0x800740280,0x24,MSG_NOSIGNAL,0,0)
16116:1 0 polkitd 0.000010 GIO fd 5 wrote 36 bytes
"AUTH EXTERNAL 34323934393637323935\r
"
16116:1 0 polkitd 0.000006 RET sendto 36/0x24
. . .
16116:1 0 polkitd 0.000520 CALL recvfrom(0x5,0x800735000,0x1000,0,0,0)
16116:1 0 polkitd 0.000013 GIO fd 5 read 46 bytes
"REJECTED EXTERNAL DBUS_COOKIE_SHA1 ANONYMOUS\r
"
16116:1 0 polkitd 0.000005 RET recvfrom 46/0x2e
--- ---
Can anyone tell me what does the argument ('30' in the FreeBSD case
and '34323934393637323935' in the DragonFly) in the EXTERNAL
authentication protocol of dbus stand for?
Thanks
Peeter
More information about the dbus
mailing list