• C
    rtnetlink: enable IFLA_IF_NETNSID for RTM_DELLINK · b61ad68a
    Christian Brauner 提交于
    - 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: NChristian Brauner <christian.brauner@ubuntu.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    b61ad68a
rtnetlink.c 112.3 KB