Re: polkit fails to authenticate on dbus

Thiago Macieira <[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <3674213.0kd4ltIVuM@tjmaciei-mobl4>
On Tuesday 20 January 2015 22:41:44 karu.pruun wrote:
> On Tue, Jan 20, 2015 at 10:07 PM, Thiago Macieira <[email protected]> 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

_______________________________________________
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.