polkit fails to authenticate on dbus

Thiago Macieira thiago at kde.org
Tue Jan 20 14:58:33 PST 2015


On Tuesday 20 January 2015 22:41:44 karu.pruun wrote:
> On Tue, Jan 20, 2015 at 10:07 PM, Thiago Macieira <thiago at kde.org> wrote:
> > On Tuesday 20 January 2015 20:48:52 karu.pruun wrote:
> >> 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?
> > 
> > It's the hex encoding of the UID, in decimal
> > 
> >         30                                      = "0"                   =
> >         root
> >         34323934393637323935 = "4294967295"     = probably "nobody"
> > 
> > Are you connecting to the system bus?
> 
> Thanks. Yes connecting to the system bus but failing. I wonder where
> in the polkitd code that UID string '34323934393637323935' is
> computed? I wonder if the error is with polkitd computing the wrong
> UID.

Probably from getuid() returning that. You tell me whether it's possible for 
the syscall to return UINT_MAX on Dragonfly -- on Linux, it isn't, since 
ULONG_MAX-4095..ULONG_MAX are reserved for error codes.

The system daemon will allow any UID to be passed there, provided it exists in 
/etc/passwd.
-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358



More information about the dbus mailing list