Re: UNIX domain socket (Solarisx86 2.5)

Charles M. Hannum (mycroft@GNU.AI.MIT.EDU)
Wed, 21 May 1997 12:08:07 -0400

Casper Dik <casper@HOLLAND.SUN.COM> writes:

>
> The placeholder for a Unix domain socket in Solaris is a mode 0 pipe.
> (Though in 2.6 this changes and sockets are again first class citizens)
> As stated in the original unix domain socket documentation "the filesystem
> entry is an artifact of the implementation" or words to that effect.

You'll note that's been changed in 4.4BSD:

Normal
filesystem access-control mechanisms are also applied when referencing
pathnames; e.g., the destination of a connect(2) or sendto(2) must be
writable.

I believe there are other systems which do this as well, and arguably
it's the desired behaviour. However, portable programs can't rely on
it.