]> 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)
commite5938915b9a56b901b15f1c16ee590353ce4009e
tree379cb186c759641311ec2eed0c3e1aba9e30fa3c
parent97297c9a3a616c6e1097999415a6d11f75fe6676
parent348f75d10f7b24dd1248968d05a2dad617458e98
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>