Add support for the SO_PEERCRED socket option
(see http://www.welz.org.za/notes/on-peer-cred.html)
This option would be very useful for providing local user authentication
support.
It looks like this could easily be added and accessed through the
AFUNIXSocketImpl.getOption method.
Would need to provide some java class to hold the ucred struct data, and
populate it in the native code, but that should be fairly simple.
I might spend some time on this and contribute a patch.
If you have any thoughts, let me know.
Original issue reported on code.google.com by
phils...@gmail.comon 1 Apr 2011 at 7:19