Re: Getting uid of connected user from daemon (possibly using kernel?)
Re: Getting uid of connected user from daemon (possibly using kernel?)
- Subject: Re: Getting uid of connected user from daemon (possibly using kernel?)
- From: Quinn <email@hidden>
- Date: Tue, 27 May 2008 11:37:40 +0100
At 9:39 +0400 21/5/08, Platon Fomichev wrote:
You're absolutely right about this - I should have stated this
clearer - the main protection here is not to allow let's say user A
to impersonate user B. I.e let's say I store some per-user info for
logged in users - it's more or less safe to give correct info to
anyone who has correct uid, but it's absolutely not ok to give it to
user with another uid. That's the idea.
Have you looked at LOCAL_PEERCRED? It's not ideal, but it will
probably be sufficient for your needs.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
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