]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
rtnetlink: enable IFLA_IF_NETNSID for RTM_DELLINK
authorChristian Brauner <christianvanbrauner@gmail.com>
Wed, 24 Jan 2018 14:26:34 +0000 (15:26 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Wed, 28 Feb 2018 14:46:57 +0000 (08:46 -0600)
commitd238af80de721814a52ef436b4484a7e68be3e7b
tree031004857c79d73ea7bca6f3d28172864657d25d
parent7ead66ffcee09539f7deb132519ec1ff0a2f7521
rtnetlink: enable IFLA_IF_NETNSID for RTM_DELLINK

BugLink: http://bugs.launchpad.net/bugs/1748232
- Backwards Compatibility:
  If userspace wants to determine whether RTM_DELLINK supports the
  IFLA_IF_NETNSID property they should first send an RTM_GETLINK request
  with IFLA_IF_NETNSID on lo. If either EACCESS is returned or the reply
  does not include IFLA_IF_NETNSID userspace should assume that
  IFLA_IF_NETNSID is not supported on this kernel.
  If the reply does contain an IFLA_IF_NETNSID property userspace
  can send an RTM_DELLINK with a IFLA_IF_NETNSID property. If they receive
  EOPNOTSUPP then the kernel does not support the IFLA_IF_NETNSID property
  with RTM_DELLINK. Userpace should then fallback to other means.

- Security:
  Callers must have CAP_NET_ADMIN in the owning user namespace of the
  target network namespace.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit b61ad68a9fe85d29d5363eb36860164a049723cf)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
net/core/rtnetlink.c