lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <151861548493.9376.6162694167471967.stgit@localhost.localdomain>
Date:   Wed, 14 Feb 2018 16:39:45 +0300
From:   Kirill Tkhai <ktkhai@...tuozzo.com>
To:     davem@...emloft.net, jasowang@...hat.com, edumazet@...gle.com,
        xiyou.wangcong@...il.com, willemb@...gle.com,
        peterpenkov96@...il.com, linyu.yuan@...atel-sbell.com.cn,
        kstewart@...uxfoundation.org, aviadye@...lanox.com,
        gregkh@...uxfoundation.org, ktkhai@...tuozzo.com,
        davejwatson@...com, netdev@...r.kernel.org
Subject: [PATCH net-next v2 0/3] 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().
---

Kirill Tkhai (3):
      net: Make extern and export get_net_ns()
      net: Export open_related_ns()
      tun: Add ioctl() SIOCGSKNS cmd to allow obtaining net ns of tun device


 drivers/net/tun.c      |   16 ++++++++++++++--
 fs/nsfs.c              |    1 +
 include/linux/socket.h |    2 ++
 net/socket.c           |    3 ++-
 4 files changed, 19 insertions(+), 3 deletions(-)

--
Signed-off-by: Kirill Tkhai <ktkhai@...tuozzo.com>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ