Subject: Re: list of all network namespaces

From: Rick Jones <[email-masked]>
Date: Wed, 16 Sep 2015 17:54:34 -0700

On 09/16/2015 05:46 PM, Ani Sinha wrote:
> Hi guys
>
> just a stupid question. Is it possible to get a list of all active
> network namespaces in the kernel through /proc or some other
> interface?

Presumably you could copy what "ip netns" does, which appears to be to 
look in /var/run/netns .  At least that is what an strace of that 
command suggests.

rick jones