From: Jiri Benc <jbenc@redhat.com>
To: Ani Sinha <ani@arista.com>
Cc: "Rosen, Rami" <rami.rosen@intel.com>,
Rick Jones <rick.jones2@hp.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: list of all network namespaces
Date: Thu, 17 Sep 2015 20:14:50 +0200 [thread overview]
Message-ID: <20150917201450.02c9586c@griffin> (raw)
In-Reply-To: <CAOxq_8OTR2neJhDU4BOubWcc7Qd=j9T3jg4ESv-ojXqj+xxYxQ@mail.gmail.com>
On Thu, 17 Sep 2015 10:39:57 -0700, Ani Sinha wrote:
> Will there be any interest if I cook up a kernel patch that lists all
> network namespaces through /proc?
/proc is a wrong interface for this, enumerating all net namespaces has
nothing to do with processes. Each process has its corresponding
namespaces in /proc already listed, which is as much as belongs
to /proc.
Dumping all net namespaces should be probably netlink based but
obviously, you'll have hard time sending file descriptors over netlink.
You can dump their netnsids but that won't help you much accessing the
namespace contents.
This is not as easy as it seems. But I'd love to have such feature.
Jiri
--
Jiri Benc
prev parent reply other threads:[~2015-09-17 18:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-17 0:46 list of all network namespaces Ani Sinha
2015-09-17 0:54 ` Rick Jones
2015-09-17 9:40 ` Jiri Benc
2015-09-17 9:46 ` Nicolas Dichtel
2015-09-17 9:51 ` Rosen, Rami
2015-09-17 17:39 ` Ani Sinha
2015-09-17 18:11 ` Cong Wang
2015-09-17 18:14 ` Jiri Benc [this message]
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=20150917201450.02c9586c@griffin \
--to=jbenc@redhat.com \
--cc=ani@arista.com \
--cc=netdev@vger.kernel.org \
--cc=rami.rosen@intel.com \
--cc=rick.jones2@hp.com \
/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 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).