Received: by 10.223.176.5 with SMTP id f5csp521358wra; Wed, 7 Feb 2018 03:14:43 -0800 (PST) X-Google-Smtp-Source: AH8x224xKBLKheP5VZtXfD6Rqw/FUVamegY7yx2CbSQNB1YBqmTlVnKmlUj4I43kpewrDe3861oN X-Received: by 2002:a17:902:7e85:: with SMTP id c5-v6mr5838073plm.110.1518002083737; Wed, 07 Feb 2018 03:14:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518002083; cv=none; d=google.com; s=arc-20160816; b=hZA5hQD3/ep8c6ETqEdUYYH4ZaUEhAxojzDOSh2y2Z5gIxVUBcrN5xdnyQY9QV8+I7 g9tKg31kq1sGFbts8ofOvobDLouZtjxh6Okk+YUPGCd9UvnwrWA9cRt4/8aH76TGp/1L 8KvmM/utWIEPrg76Tdv1pmIwtH5jgJn6uOa1bp6DVAUP/lL6CEIk8pnwymNrNWkjLzEn hCTXQESlMQ1V3tytiqk2I/fqfnfrjvf5vDNyw12fWDRg3XJ35pHV0ZZooMpE71+bGEoJ +Hw147iYqEiuWd9xyCl3bxmsagtOgtbPVcFpb1vvZT61qigvC5UStCOufotNcY39aY6a uFWA== 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:message-id:subject:cc:to:from:date :arc-authentication-results; bh=lN1cOWCLYvrOlWoi61/YNXK/wqn9YOFO08PDNgdjwBA=; b=wAm/+e5ELYqBBKZnYRjYFOwpZrLqnCLoEPv6PM3QJav21pYErXXX+9eTlX1cxEjxnP asH+BeSaX81tIs+moCg7Q3OKTInWyWoxSgi4SjeS+Q+5q79XygpLQzPNOxbjELQibUWW /zM76gCHB/O8qyQ4yAR0OW9cFHEFCeCsdCB/gZIksdpcJ2lUizMInG6Vd0rCa+lwzlPE uVR6b/dEaQIkfJGENxuj6nqU5yvTpdChwioKyHsHoC3PIm5XFjz/ZFJP5tbqG0Z/alP6 QrXovh+eNmk8ba+9IN2i2AL/wB9/EQVVzmdGiLtMR8yASkSbm0SMdOCLQ1KDT/l5PtIB Ezjw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b29si963085pfm.54.2018.02.07.03.14.29; Wed, 07 Feb 2018 03:14:43 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753876AbeBGLNP (ORCPT + 99 others); Wed, 7 Feb 2018 06:13:15 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:33602 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753693AbeBGLNO (ORCPT ); Wed, 7 Feb 2018 06:13:14 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9AAB979D40; Wed, 7 Feb 2018 11:13:13 +0000 (UTC) Received: from localhost (unknown [10.40.205.88]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 97A3D122775C; Wed, 7 Feb 2018 11:13:10 +0000 (UTC) Date: Wed, 7 Feb 2018 12:13:09 +0100 From: Jiri Benc To: ebiederm@xmission.com (Eric W. Biederman) Cc: Christian Brauner , Kirill Tkhai , Christian Brauner , netdev@vger.kernel.org, stephen@networkplumber.org, w.bumiller@proxmox.com, nicolas.dichtel@6wind.com, linux-kernel@vger.kernel.org, dsahern@gmail.com, davem@davemloft.net Subject: Re: [PATCH net 1/1 v2] rtnetlink: require unique netns identifier Message-ID: <20180207121309.46fdce62@redhat.com> In-Reply-To: <877erphhry.fsf@xmission.com> References: <20180205155550.21432-1-christian.brauner@ubuntu.com> <20180205155550.21432-2-christian.brauner@ubuntu.com> <2eac607b-e847-1b21-b3cb-6a45130138ee@virtuozzo.com> <20180205232438.GA8695@gmail.com> <877erphhry.fsf@xmission.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 07 Feb 2018 11:13:13 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 07 Feb 2018 11:13:13 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jbenc@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 06 Feb 2018 16:31:29 -0600, Eric W. Biederman wrote: > Frankly. If we are talking precedence it should be: > fds > netnsids > pids The current order is 1. pids, 2. fds, though. Not that it matters much, see below. > I do think it makes a lot of sense to error if someone passes in > duplicate arguments. AKA multiple attribute that could select for > the same thing. No one will do that deliberately. It doesn't make > sense. So it is just a nonsense case we have to handle gracefully, > and correctly. With correctness being the most important as otherwise > people might just send in nonsense to exploit bugs. Completely agreed. Let's just start returning error if more than one of the pid/fs/netnsid attributes is specified. I don't think this is going to break any user. And we'll not have to care about the order. > I agree refusing to combine multiple attributes for the same thing > sounds the most sensible course. Yes, please. Thanks! Jiri