lkml.org 
[lkml]   [2018]   [Jan]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH net-next 1/1] rtnetlink: enable IFLA_IF_NETNSID for RTM_NEWLINK
From
From: Christian Brauner <christian.brauner@ubuntu.com>
Date: Mon, 29 Jan 2018 18:07:20 +0100

> - Backwards Compatibility:
> If userspace wants to determine whether RTM_NEWLINK 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_NEWLINK with a IFLA_IF_NETNSID property. If they receive
> EOPNOTSUPP then the kernel does not support the IFLA_IF_NETNSID property
> with RTM_NEWLINK. 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>

Applied.

\
 
 \ /
  Last update: 2018-01-31 16:31    [W:0.095 / U:0.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site