[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150917201450.02c9586c@griffin>
Date: Thu, 17 Sep 2015 20:14:50 +0200
From: Jiri Benc <jbenc@...hat.com>
To: Ani Sinha <ani@...sta.com>
Cc: "Rosen, Rami" <rami.rosen@...el.com>,
Rick Jones <rick.jones2@...com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: list of all network namespaces
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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists