Re: Unix sockets and authentication

From: Casper H.S. Dik (Casper.Dik_at_Sun.COM)
Date: 02/20/04


Date: 20 Feb 2004 03:38:53 GMT

passolo <passolo@polymtl.ca> writes:

>Hello,

>I am thinking switching an application from BSD sockets to Unix sockets because of their ability to authenticate (see SCM_CREDENTIALS) the user/process at the other end.

>The VERSION section of the man 7 unix page on Linux is a bit worrysome - it mentions portability problems. If anyone has insights and examples I would appreciate, as I have zero experience with.

FYI, There is a feature similar to this available
in Solaris Express http://wwws.sun.com/software/solaris/solaris-express/
(As documented in socket.h(3HEAD) and getpeerucred(3C); unfortunately,
at this time the only way to read the documentation is to
download the the whole SOlaris Express release)

Casper

-- 
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.