LOCAL_PEERCRED and getpeereid
LOCAL_PEERCRED and getpeereid
- Subject: LOCAL_PEERCRED and getpeereid
- From: Etsushi Kato <email@hidden>
- Date: Fri, 5 Mar 2004 19:24:50 +0900
Hi,
I recently found that Darwin kernel doesn't support getpeereid() for
peer unix domain socket credentials. In FreeBSD, it seems getpeereid()
has been implemented since certain times before. I think local socket
credentials are quite important for Unix applications, such as openssh,
openldap, postgresql, and so on.
So, I've just ported LOCAL_PEERCRED support from FreeBSD, and attached
patch was made against darwin 7.2's xnu and Libc. I tested this patch
on Mac OS X 10.3, and seems to work fine. Can someone check this
patch? and is it possible that getpeereid() is supported in the next
release of darwin?
Cheers,
--
Etsushi Kato
email@hidden
[demime 0.98b removed an attachment of type application/octet-stream which had a name of local_peercred_darwin.patch]
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.