|
|
Log in / Subscribe / Register

Add namespace awareness to Netlink methods

From:  Jonas Bonn <jonas-AT-norrbonn.se>
To:  nicolas.dichtel-AT-6wind.com, netdev-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org
Subject:  [PATCH 0/5] Add namespace awareness to Netlink methods
Date:  Tue, 5 Nov 2019 09:11:07 +0100
Message-ID:  <20191105081112.16656-1-jonas@norrbonn.se>
Cc:  davem-AT-davemloft.net, Jonas Bonn <jonas-AT-norrbonn.se>
Archive-link:  Article

Currently, Netlink has partial support for acting outside of the current
namespace.  It appears that the intention was to extend this to all the
methods eventually, but it hasn't been done to date.

With this series RTM_SETLINK, RTM_NEWLINK, RTM_NEWADDR, and RTM_NEWNSID
are extended to respect the selection of the namespace to work in.

/Jonas

Jonas Bonn (5):
  rtnetlink: allow RTM_SETLINK to reference other namespaces
  rtnetlink: skip namespace change if already effect
  rtnetlink: allow RTM_NEWLINK to act upon interfaces in arbitrary
    namespaces
  net: ipv4: allow setting address on interface outside current
    namespace
  net: namespace: allow setting NSIDs outside current namespace

 net/core/net_namespace.c | 19 ++++++++++
 net/core/rtnetlink.c     | 79 ++++++++++++++++++++++++++++++++++------
 net/ipv4/devinet.c       | 56 ++++++++++++++++++++--------
 3 files changed, 127 insertions(+), 27 deletions(-)

-- 
2.20.1



Copyright © 2019, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds