netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Documenting UNIX domain autobind
@ 2010-10-10  5:48 Michael Kerrisk
  2010-10-17  5:28 ` Tetsuo Handa
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Kerrisk @ 2010-10-10  5:48 UTC (permalink / raw)
  To: Tetsuo Handa; +Cc: netdev, mzxreary

Hello Tetsuo,

I'm the Linux man-pages mainatiner. I write to you because I see that
you recently (http://kerneltrap.org/mailarchive/linux-netdev/2010/8/30/6284106/thread#mid-6284106)
did some work patchiing Linux unix_autobind(), so you may know the
answer to this question. But, also others on the CC may know.

I recently noticed this feature in the kernel, and so added some
documentation to the unix(7) man page. That text reads as follows:

   Autobind Feature
       If a bind() call specifies addrlen as  sizeof(sa_family_t),  or
       the  SO_PASSCRED  socket option was specified for a socket that
       was not explicitly bound to an  address,  then  the  socket  is
       autobound  to  an  abstract address.  The address consists of a
       null byte followed by 5 bytes in the  character  set  [0-9a-f].
       (Thus, there is a limit of 2^20 autobind addresses.)

I think this text correctly documents the technical details (but let
me know if you see errors). What is lacking is an explanation of why
this feature exists. Is someone able to explain where this feature is
used and why?

thanks,

Michael

-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-04-16 11:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-10  5:48 Documenting UNIX domain autobind Michael Kerrisk
2010-10-17  5:28 ` Tetsuo Handa
2010-10-26 12:15   ` Question on UNIX domain socket Tetsuo Handa
     [not found]     ` <201010262115.FEH09326.OMFJHSVOFLQFOt-JPay3/Yim36HaxMnTkn67Xf5DAMn2ifp@public.gmane.org>
2010-11-23 12:59       ` Patch for man unix(7) Tetsuo Handa
     [not found]         ` <201011232159.DFE78143.tSHMFQOLFVFJOO-JPay3/Yim36HaxMnTkn67Xf5DAMn2ifp@public.gmane.org>
2012-04-15 21:42           ` Michael Kerrisk (man-pages)
     [not found]             ` <CAKgNAkgNRbdcWwo0nhsbCxtnagEucxm6d76ugGAAUAd+ukBLCQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-04-15 22:40               ` Michael Kerrisk (man-pages)
2012-04-16 11:08                 ` Tetsuo Handa
2012-04-15 21:07   ` Documenting UNIX domain autobind Michael Kerrisk (man-pages)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).