Received: by 10.223.176.5 with SMTP id f5csp1512558wra; Wed, 31 Jan 2018 07:31:29 -0800 (PST) X-Google-Smtp-Source: AH8x226gktYTnb/C72xTljtKpBHgabT35SGYcUoVNHV96PMBvD5qD7kCQlYe9eotXZvk1pHT4Dh5 X-Received: by 2002:a17:902:4827:: with SMTP id s36-v6mr989489pld.337.1517412689021; Wed, 31 Jan 2018 07:31:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517412688; cv=none; d=google.com; s=arc-20160816; b=uqDIuxXYp2pl8/BGxlq1UYUSzezbD0sIhihC5lD69x9+7SJxNAjx8OTmI3fnzV2+KK sRQyZCnFXFErwwDbZDy139qdIeSnpoNsPWZMilNL1xMefX5/2Slbuc5ppghDrLaBYgUQ 6Aym2M01UUXJHcyO9wMK+4f+MOuwZSh6l2opy2uawbPTHGt2dQxfPRD0sLMcD+WRyAAt +gQ/Os9btwreEu+lL4fIcUuWyKUtt/jA4Q/y0tcnsBS1/9PLxvSCQ6+PhZiAa0xd6cLG 1vMZyL4Ntm6cD/AFj5IfaKz6d9y7GkZ5ZZ8Xc7eAJ5jveqT2FDMji4xpiTBphwPyh1UY xw6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=2dLL/o7+JAWeOLGgZNLmKCkaD07YKA9ufEOecIRa/ak=; b=kEH7tKiNzFGkt8RxQlu2UjC5cSFwJqgcxrvMYtUJjitxxGz2i+DLvtL83twRLfVGBf dYbAQmv4lRJ75UrkrlXj9jS8XRHsZ1OfzIjhtgBP05OQlw/gz/hrcuA/Shhj72/VrkFF U1k8IFlRSHZw0wJ80Yky5A4hD7i8Q6wp/uYzLjVeux7P1XBkJGyfAz+TzxJPNJt/itUE Wv7v1Qx9w/fRTvouB92F1f0gLyyx39mhbTgPIb1fsJOp8SkT6cEyZZy4mV2WKKSka4/u skgXeFGbl1875sSI5g9hFn4NI4dbTOBqlzVxUagf9B6zffNiguSYWCBTsbtj6q+wHzx3 SxvQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r22si16679529pfh.170.2018.01.31.07.31.14; Wed, 31 Jan 2018 07:31:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753437AbeAaPas (ORCPT + 99 others); Wed, 31 Jan 2018 10:30:48 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:44864 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753325AbeAaPar (ORCPT ); Wed, 31 Jan 2018 10:30:47 -0500 Received: from localhost (67.110.78.66.ptr.us.xo.net [67.110.78.66]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id A514D13EB4DA2; Wed, 31 Jan 2018 07:30:45 -0800 (PST) Date: Wed, 31 Jan 2018 10:30:44 -0500 (EST) Message-Id: <20180131.103044.1805785714040464628.davem@davemloft.net> To: christian.brauner@ubuntu.com Cc: netdev@vger.kernel.org, ebiederm@xmission.com, dsahern@gmail.com, fw@strlen.de, daniel@iogearbox.net, lucien.xin@gmail.com, mschiffer@universe-factory.net, jakub.kicinski@netronome.com, vyasevich@gmail.com, linux-kernel@vger.kernel.org, jbenc@redhat.com, w.bumiller@proxmox.com, nicolas.dichtel@6wind.com Subject: Re: [PATCH net-next 1/1] rtnetlink: enable IFLA_IF_NETNSID for RTM_NEWLINK From: David Miller In-Reply-To: <20180129170720.29724-2-christian.brauner@ubuntu.com> References: <20180129170720.29724-1-christian.brauner@ubuntu.com> <20180129170720.29724-2-christian.brauner@ubuntu.com> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 31 Jan 2018 07:30:46 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christian Brauner 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 Applied.