Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2998913ybi; Thu, 18 Jul 2019 19:00:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLRrdPHdkd1YsCNPLEu6SHr/vgentotUBZexYs90gk7gjaZhVevn0n/ubPdFuMRP+yd+zK X-Received: by 2002:a65:4045:: with SMTP id h5mr52480888pgp.247.1563501612538; Thu, 18 Jul 2019 19:00:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563501612; cv=none; d=google.com; s=arc-20160816; b=N9rgCcTGJ4VgKyjD5nHemdtUsgI9oKb/UPskPmBrq/IUbiW2Eck6NhvxDLKK/3ZG/e BJckPueBEjcK1Pj7Zynl72+B2cu/+GltZvW8kRFYCeB2SDj5rt6m7UQCc34TJrvCSQmR gIK2UQ4mIejHNjXKNNpEVvYKJFcQjAkO8ePnM8k/D5+bfems2don7OwKMek7lB5L4EbB nezcprKAXT+816bhZgSFWmXoIoQQ5Ig4LuezajRpsqHK0WzAkGX05FQ0qkvGrMi5zigj nulIb8LdMG/p36v4Pz4pZh37LDr+pAKvs8XcmamuOkcZDnMqdOKvJ1jhPVDRbgLWhhiA Uj4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=JctYXwWi41I2ejHscVimK1ukhG6D6F/+Y31rQuJ3unA=; b=uU8rgPaF2iI5LVU7N71bM6jCK0E5EaHjuXNoUqdcsZ6s1mAiTctj1dJ2bZSYq04SP/ F0yv4cMZOU6cGK0c/WYZByQmRaQhNI5QjEzMHaYouueAc+l7itLL3wVuJqGGRfFtR99r 8Sj2VEP1ePt9PaDw8BibN+iAbIZxHBjT9kJWNYk73rgu2AYH3cQ1CMgJUF5jZ3qX0gf3 jwapaqO9VtG69OFfJxOZFE5InGwGL9AG7jxKNCjMjZqNouEfyR3Y+I7L+VO7dOHRrd9S XiVrcSpzsaBA3l25qcLePd/od7R0UYD/QRQtUmhBtgfxy614aWw5EIoXPOKl+lelJUE1 8alA== 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 r8si126947pgr.243.2019.07.18.18.59.56; Thu, 18 Jul 2019 19:00:12 -0700 (PDT) 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 S1726512AbfGSB7j (ORCPT + 99 others); Thu, 18 Jul 2019 21:59:39 -0400 Received: from vmicros1.altlinux.org ([194.107.17.57]:55986 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726042AbfGSB7j (ORCPT ); Thu, 18 Jul 2019 21:59:39 -0400 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id 492A272CA65; Fri, 19 Jul 2019 04:59:34 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id 3B39E7CC774; Fri, 19 Jul 2019 04:59:34 +0300 (MSK) Date: Fri, 19 Jul 2019 04:59:34 +0300 From: "Dmitry V. Levin" To: Aleksa Sarai Cc: Al Viro , Jeff Layton , "J. Bruce Fields" , Arnd Bergmann , David Howells , Shuah Khan , Shuah Khan , Christian Brauner , Eric Biederman , Andy Lutomirski , Andrew Morton , Alexei Starovoitov , Kees Cook , Jann Horn , Tycho Andersen , David Drysdale , Chanho Min , Oleg Nesterov , Aleksa Sarai , Linus Torvalds , containers@lists.linux-foundation.org, linux-alpha@vger.kernel.org, linux-api@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, sparclinux@vger.kernel.org Subject: Re: [PATCH v9 08/10] open: openat2(2) syscall Message-ID: <20190719015933.GA18022@altlinux.org> References: <20190706145737.5299-1-cyphar@cyphar.com> <20190706145737.5299-9-cyphar@cyphar.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="huq684BweRXVnRxX" Content-Disposition: inline In-Reply-To: <20190706145737.5299-9-cyphar@cyphar.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --huq684BweRXVnRxX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jul 07, 2019 at 12:57:35AM +1000, Aleksa Sarai wrote: [...] > +/** > + * Arguments for how openat2(2) should open the target path. If @extra i= s zero, > + * then openat2(2) is identical to openat(2). > + * > + * @flags: O_* flags (unknown flags ignored). What was the rationale for implementing this semantics? Ignoring unknown flags makes potential extension of this new interface problematic. This has bitten us many times already, so ... > + * @mode: O_CREAT file mode (ignored otherwise). > + * @upgrade_mask: restrict how the O_PATH may be re-opened (ignored othe= rwise). > + * @resolve: RESOLVE_* flags (-EINVAL on unknown flags). =2E.. could you consider implementing this (-EINVAL on unknown flags) seman= tics for @flags as well, please? --=20 ldv --huq684BweRXVnRxX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJdMSQFAAoJEAVFT+BVnCUIuaAP/3pgUoQA466F6S8jYN6F/icf oiQHExdeO3ruxRdNl1gi7af0RxQCiprfNIoD7KQyWSnyUyUm0Cdd7PzpEKXuumQi pN6ZTEO2bQeSs7AjCNpLrTgKcuOo/pZbNN7InAHKLB7k2xKKeBbdaVypgGiAEDjT JK+4s+8JcJoSg+d69G428QP2qpoHyIZJ5437gYv5rJbL9BRihwwvWF2OQ4TXrd6I YnyxPFRRZnfiN3HNbNlJjtMgt5g0AisLuahpJaDMq0NaXnBOosDm9jBAhVOX0CSB LUNByCygXeBKv9VuyrO4KnLXS3ORGfK38SDGqz3kFYy1quNRAGKgOXPnGXfb2xbZ bRCqyuxkSUOIfLKA6q9jnqO9RoUeOtLglFUT/5JpixTaoxSFN3Y6GlJFcnw+cVm+ oWH4A/IoST68FCfbOMff976O36pakuWbsVGVsdv384OEHfWaf7c10P9EQc3fhgF3 JoeY5ht9R1k8HWNOlCuCeHfTwSyLG3T/TROuZYtz65RdPemuuPSPERr+GzOtO9Fn +wQmK99JlE3nhoyv5CmtqCmMQWhYZedqjbjs5wIq7tjalerg6TakNMmhzTGz5l8T i+3EfyMHhEtwq+2YNhdaPEmjfdBzyI3stxtEkURya0BnCgbYsP2mTIP8UbLGDqsY EJZiRtPRFfVoePwqT8Ux =zLLc -----END PGP SIGNATURE----- --huq684BweRXVnRxX--