Re: pthread_getugid_np and pthread_setugid_np?
Subject : Re: pthread_getugid_np and pthread_setugid_np?
From: James Bucanek <email@hidden >
Date: Sun, 27 Jan 2008 17:47:05 -0700
Delivered-to: email@hidden
Delivered-to: email@hidden
Kaelin Colclasure <mailto:email@hidden > wrote (Saturday,
January 26, 2008 5:02 PM -0800):
It's not a security mechanism-- a thread that had the privilege to set credentials can always revert back to its original credentials by calling:
pthread_setugid_np(KAUTH_UID_NONE, KAUTH_GID_NONE);
Sweet!
That's exactly what I was looking for. So can you tell me if
that's documented anywhere -- or is this just in the collective
knowledge of the Mac OS X Gestalt?
I'll file a bug report on the lack of documentation for pthread_getugid_np/pthread_setugid_np.
Thanks so very much for the info.
James
--
James Bucanek
_______________________________________________
Do not post admin requests to the list. They will be ignored.
PerfOptimization-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/perfoptimization-dev/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.