From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Brauner Subject: Re: [PATCH net 1/1 v4] rtnetlink: require unique netns identifier Date: Thu, 8 Feb 2018 23:55:43 +0100 Message-ID: References: <20180207125320.9103-1-christian.brauner@ubuntu.com> <20180207125320.9103-2-christian.brauner@ubuntu.com> <20180208.143356.2044831753683027153.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Cc: Christian Brauner , Netdev , Kirill Tkhai , Stephen Hemminger , w.bumiller@proxmox.com, "Eric W. Biederman" , Jiri Benc , Nicolas Dichtel , Linux Kernel Mailing List , David Ahern To: David Miller Return-path: Received: from youngberry.canonical.com ([91.189.89.112]:51299 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751343AbeBHWzp (ORCPT ); Thu, 8 Feb 2018 17:55:45 -0500 Received: from mail-wr0-f200.google.com ([209.85.128.200]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1ejv6W-0001Wt-LX for netdev@vger.kernel.org; Thu, 08 Feb 2018 22:55:44 +0000 Received: by mail-wr0-f200.google.com with SMTP id w102so3418338wrb.21 for ; Thu, 08 Feb 2018 14:55:44 -0800 (PST) In-Reply-To: <20180208.143356.2044831753683027153.davem@davemloft.net> Sender: netdev-owner@vger.kernel.org List-ID: On Thu, Feb 8, 2018 at 8:33 PM, David Miller wrote: > From: Christian Brauner > Date: Wed, 7 Feb 2018 13:53:20 +0100 > >> Since we've added support for IFLA_IF_NETNSID for RTM_{DEL,GET,SET,NEW}LINK >> it is possible for userspace to send us requests with three different >> properties to identify a target network namespace. This affects at least >> RTM_{NEW,SET}LINK. Each of them could potentially refer to a different >> network namespace which is confusing. For legacy reasons the kernel will >> pick the IFLA_NET_NS_PID property first and then look for the >> IFLA_NET_NS_FD property but there is no reason to extend this type of >> behavior to network namespace ids. The regression potential is quite >> minimal since the rtnetlink requests in question either won't allow >> IFLA_IF_NETNSID requests before 4.16 is out (RTM_{NEW,SET}LINK) or don't >> support IFLA_NET_NS_{PID,FD} (RTM_{DEL,GET}LINK) in the first place. >> >> Signed-off-by: Christian Brauner > > Applied, thanks Christian. Thanks for applying, David.