From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Emelyanov Subject: Re: [PATCH] net-next: make sock diag per-namespace (v2) Date: Tue, 17 Jul 2012 06:34:34 +0400 Message-ID: <5004CF3A.6080704@parallels.com> References: <1342448929-1809316-1-git-send-email-avagin@openvz.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Alexey Kuznetsov , James Morris , Hideaki YOSHIFUJI , Patrick McHardy , Eric Dumazet , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" To: Andrew Vagin , "David S. Miller" Return-path: Received: from mailhub.sw.ru ([195.214.232.25]:34742 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754275Ab2GQCem (ORCPT ); Mon, 16 Jul 2012 22:34:42 -0400 In-Reply-To: <1342448929-1809316-1-git-send-email-avagin@openvz.org> Sender: netdev-owner@vger.kernel.org List-ID: On 07/16/2012 06:28 PM, Andrew Vagin wrote: > Before this patch sock_diag works for init_net only and dumps > information about sockets from all namespaces. > > This patch expands sock_diag for all name-spaces. > It creates a netlink kernel socket for each netns and filters > data during dumping. > > v2: filter accoding with netns in all places > remove an unused variable. > > Cc: "David S. Miller" > Cc: Alexey Kuznetsov > Cc: James Morris > Cc: Hideaki YOSHIFUJI > Cc: Patrick McHardy > Cc: Pavel Emelyanov > CC: Eric Dumazet > Cc: linux-kernel@vger.kernel.org > Cc: netdev@vger.kernel.org > Signed-off-by: Andrew Vagin Acked-by: Pavel Emelyanov