lkml.org 
[lkml]   [2019]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v3 0/6] Add namespace awareness to Netlink methods
Date
Changed in v3:
- added patch 6 for setting IPv6 address outside current namespace
- address checkpatch warnings
- address comment from Nicolas

Changed in v2:
- address comment from Nicolas
- add accumulated ACK's

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 (6):
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: ipv6: allow setting address on interface outside current
namespace

net/core/net_namespace.c | 19 ++++++++++
net/core/rtnetlink.c | 80 ++++++++++++++++++++++++++++++++++------
net/ipv4/devinet.c | 61 ++++++++++++++++++++++--------
net/ipv6/addrconf.c | 13 +++++++
4 files changed, 145 insertions(+), 28 deletions(-)

--
2.20.1

\
 
 \ /
  Last update: 2019-11-07 14:29    [W:0.112 / U:0.468 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site