From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next v2 0/3] Add ioctl() SIOCGSKNS cmd to allow obtaining net ns of tun device Date: Thu, 15 Feb 2018 15:35:32 -0500 (EST) Message-ID: <20180215.153532.1034078541331191429.davem@davemloft.net> References: <151861548493.9376.6162694167471967.stgit@localhost.localdomain> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: jasowang@redhat.com, edumazet@google.com, xiyou.wangcong@gmail.com, willemb@google.com, peterpenkov96@gmail.com, linyu.yuan@alcatel-sbell.com.cn, kstewart@linuxfoundation.org, aviadye@mellanox.com, gregkh@linuxfoundation.org, davejwatson@fb.com, netdev@vger.kernel.org To: ktkhai@virtuozzo.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:44606 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755666AbeBOUff (ORCPT ); Thu, 15 Feb 2018 15:35:35 -0500 In-Reply-To: <151861548493.9376.6162694167471967.stgit@localhost.localdomain> Sender: netdev-owner@vger.kernel.org List-ID: From: Kirill Tkhai Date: Wed, 14 Feb 2018 16:39:45 +0300 > Currently, it's not possible to get or check net namespace, > which was used to create tun socket. User may have two tun > devices with the same names in different nets, and there > is no way to differ them each other. > > The patchset adds support for ioctl() cmd SIOCGSKNS for tun > devices. It will allow people to obtain net namespace file > descriptor like we allow to do that for sockets in general. > > v2: Add new patch [2/3] to export open_related_ns(). Series applied, thanks.