Re: kauth_getuid returns 0?
Re: kauth_getuid returns 0?
- Subject: Re: kauth_getuid returns 0?
- From: Brian Bergstrand <email@hidden>
- Date: Thu, 11 May 2006 22:30:18 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On May 11, 2006, at 9:28 PM, Russell Seehafer (RIT Student) wrote:
Hi,
I have a nke that keeps track of its associated user space clients
based on the value returned from kauth_getuid() I have run into
some instances where this call returns 0. I cannot find any
documentation on this method does anyone have any idea what could
be causing this call to return 0? My understanding is that if a
packet is being transmitted by safari, for example, that
kauth_getuid() would return the user's id of the user that is
running safari. Is there more I should consider when using this
method?
Thanks!
Russ
0 is a valid UID. It is the UID of the root user. 0 could also be
returned because there is no current task at the point you call
kauth_getuid() so you are getting the root user by default (ie the
kernel task).
HTH.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iD8DBQFEZAFTedHYW7bHtqIRAv2XAJ9Gny13NuUFYFNx0BSHsLXXC8NshQCg1mrF
/VozuSFlTTBia/GT0p26xis=
=4446
-----END PGP SIGNATURE-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden