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: Platon Fomichev <email@hidden>
- Date: Wed, 28 May 2008 11:51:08 +0400
Dear Quinn
Thank you very much - indeed it seems I've missed some quite
interesting API here. Btw looking at LOCAL_PEERCRED code I assume it's
safe to use getpeereid() in my application instead, what do you think?
P.S. I am having some progress with OpenBSD PF port to OS X, how do
you think when it will be complete can I send you the sources, and
will there be a chance that pf will be integrated into OS X at some
point.
Best regards,
Stauff__
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.
_______________________________________________
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