]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'tunchr-get-netns'
authorDavid S. Miller <davem@davemloft.net>
Thu, 15 Feb 2018 20:34:42 +0000 (15:34 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Feb 2018 20:35:11 +0000 (15:35 -0500)
commitf436f95a5f6c2422e69c038342f24a5e30486415
tree379cb186c759641311ec2eed0c3e1aba9e30fa3c
parent876d288e6b38464de1864cb0168d32dd7f671cef
parent92f842a5e70fc6cad51a51d4a81ebe3cb2e28eba
Merge branch 'tunchr-get-netns'

Kirill Tkhai says:

====================
net: Add ioctl() SIOCGSKNS cmd to allow obtaining net ns of tun device

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().
====================

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>