Re: kauth and creds in Darwin 8
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On 02/06/2005, at 5:18 AM, Mike Smith wrote: On May 25, 2005, at 9:48 PM, Sam Vaughan wrote: Sam, Hi Mike, 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) 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... 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. 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). 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: 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Sam Vaughan