From: Dan Smith <danms@us.ibm.com>
To: "Martín Ferrari" <martin.ferrari@gmail.com>
Cc: netdev <netdev@vger.kernel.org>,
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
Subject: Re: Question about netns & AF_UNIX
Date: Thu, 27 May 2010 11:08:56 -0700 [thread overview]
Message-ID: <87d3whb4jr.fsf@caffeine.danplanet.com> (raw)
In-Reply-To: <AANLkTikBuXfzS-UIL7bDMvfpL5lx9gMqHTpGg-jrm5Zv@mail.gmail.com> ("Martín Ferrari"'s message of "Thu\, 27 May 2010 16\:38\:29 +0200")
MF> I seem to recall being able to use AF_UNIX sockets across network name
MF> spaces, but I cannot reproduce that with a current kernel. Probably my
MF> test was fubar (I've lost the script).
If you are in different network namespaces, the binding of UNIX
sockets is also kept separate. Even though the filesystem is shared,
this seems to make the most sense to me. Named pipes on the
filesystem would still be shared, by the way.
MF> I also wonder if filedescriptor passing thru ancilliary messages will
MF> work (that is, with unix sockets that I've created before the netns
MF> change).
I think that will work, as will binding a socket and then doing a
setns().
--
Dan Smith
IBM Linux Technology Center
email: danms@us.ibm.com
next prev parent reply other threads:[~2010-05-27 18:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-27 14:38 Question about netns & AF_UNIX Martín Ferrari
2010-05-27 18:08 ` Dan Smith [this message]
2010-05-31 9:19 ` Martín Ferrari
2010-05-27 20:16 ` Daniel Lezcano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d3whb4jr.fsf@caffeine.danplanet.com \
--to=danms@us.ibm.com \
--cc=martin.ferrari@gmail.com \
--cc=mathieu.lacage@sophia.inria.fr \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.