User authentication to services

Daniel Stone daniel at freedesktop.org
Tue Jun 1 23:06:58 PDT 2004


On Wed, Jun 02, 2004 at 06:59:32AM +0100, Rob Taylor wrote:
> Ok. started implenting this and am pretty far in, but i have a problem
> with uids in that dbus represents them internally as unsigned longs, and
> if i expose these on dbus we'll have problems on mixed 32/64
> archictectures. I'm pretty certain that uid_t should be a 32 bit entitiy
> on both IAP32 and LP64, and if anyone knows this for certain i'll patch
> it up. If not, i've just subscribed to testdrive.hp.com so i'll just test
> it myself. if uid_t is really 64 bits on LP64, i'll just cast up, but i
> think this set of affairs would be pretty strange..

Indeed, on merkel.debian.org (an IA64):
daniels at merkel:~% cat foo.c
#include <stdio.h>
#include <pwd.h>

int main(int argc, char *argv[]) {
        printf("uid_t: %d, unsigned long: %d\n", sizeof(uid_t), sizeof(unsigned long));
        return 0;
}
daniels at merkel:~% gcc -D_XOPEN_SOURCE -o foo foo.c
daniels at merkel:~% ./foo                           
uid_t: 4, unsigned long: 8

-- 
Daniel Stone                                            <daniel at freedesktop.org>
freedesktop.org: powering your desktop                http://www.freedesktop.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://freedesktop.org/pipermail/dbus/attachments/20040602/2becb62c/attachment.pgp


More information about the dbus mailing list