Re: kauth and creds in Darwin 8
Re: kauth and creds in Darwin 8
- Subject: Re: kauth and creds in Darwin 8
- From: Sam Vaughan <email@hidden>
- Date: Thu, 2 Jun 2005 10:39:03 +1000
On 02/06/2005, at 5:18 AM, Mike Smith wrote:
On May 25, 2005, at 9:48 PM, Sam Vaughan wrote:
crget(), crfree(), crdup() etc. have all been removed from the
Darwin 8 kernel. The equivalent functions appear to be
kauth_cred_alloc(), kauth_cred_rele(), kauth_cred_dup() etc. but
they aren't exported. I assume that the kauth KPI is still a work
in progress, especially considering there are declarations like
kauth_cred_unref() in sys/kauth.h for which there's no kernel
implementation.
Sam,
What are you trying to do with credentials? Many of the old abuses
of the credential system are no longer possible (or necessary in
many cases).
Hi Mike,
I should have grepped the exported symbols for kauth_cred. It turns
out that although kauth_cred_alloc and kauth_cred_dup aren't
exported, a whole lot of other cred functions are. I'm pretty sure
I've got what I need now with the following substitutions:
crget(): kauth_cred_create(kauth_cred_get())
crfree(c): kauth_cred_rele(c)
crdup(c): kauth_cred_create(c)
crhold(c): kauth_cred_ref(c)
As for the reason behind all this, CXFS uses credentials to manage
permissions on RPCs issued by nodes with membership in the cluster.
That code is common to all platforms, so I simply needed to create
10.4 replacements for the OS-specific stubs we already had in 10.3.
I've already requested that the Radar bug I raised be closed.
Thanks,
Sam
_______________________________________________
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