Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5809508ybf; Thu, 5 Mar 2020 07:25:27 -0800 (PST) X-Google-Smtp-Source: ADFU+vvldP9Va+7qR+YirACyIRYP7UmNDO46+CCVkkr8AW/rwBU2EY8zjPo2DjR8Gvms/W6k4BCP X-Received: by 2002:a05:6830:1351:: with SMTP id r17mr6689652otq.227.1583421927684; Thu, 05 Mar 2020 07:25:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583421927; cv=none; d=google.com; s=arc-20160816; b=wLDaR5J4GP05ma4rrNlpiCeYfNTi755sI2A3Y0jeVdk3LS+usUfYpzH3ej46w0krQl OEGMVK3lu4ylYElCigfOS24JlWPVRLgn+o9uIrMbYBGagfrDQ1Qf9t+tt0QFJ6z4YPWX xNeYPuhj01sRxkjX9eEN2e1iPxrlGrqgsmqyl5wqLvH80Kth+NQ7uRrUOlwcG4YEPigL muzb7/xOzvae1jk+sknTN9+Yp6j0fCJRgy+ElMriWW1un+lAwfrGhADzrSHmAYSd0gs3 bQvTL8NrkUKT0Hhb7c0FBNb9tMRUk64M/bjhVmofNjMflIVXwouyezal7MI7aKAiMaaW VwDw== 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=eG9vdLCfmYpIDUJgASP1SuPuP+FkdW+yB8pbs3bntm8=; b=1JuXrlgxJrWUDizfBGwbfYMYY0XmgRRc67sLngmdg7Vk3IIN81kMrKwf8SV1SpCudx DgQUS6wh2fxYE67lPy0FrYLSSiNZCY5yIaHJhHvyDC+st27WR7seiUVvuQ/YH+8pK+AD qfie5hK70ki6n7u/U8Y4Fb2s6OrV4RklfWApzwt+FSpdLMs0fFSwG8JGtk+YYJeEQ8AB beIQR7Jm8smKx7AZFsX/xW+sfCjOTgCkxYPt/vxUvtknQusfIbwqCxUtO28hh+aVy2W5 7yg1Bdc/+7bRIh8d8QJNUOl9ntRdU8xzAot9VAE+CFl9/nb7k6gWS7nAF98/UzVqx9xl W/aw== 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 v9si3632779ota.239.2020.03.05.07.25.14; Thu, 05 Mar 2020 07:25:27 -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 S1726860AbgCEPXq (ORCPT + 99 others); Thu, 5 Mar 2020 10:23:46 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:45235 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726243AbgCEPXq (ORCPT ); Thu, 5 Mar 2020 10:23:46 -0500 Received: from b2b-5-147-251-51.unitymedia.biz ([5.147.251.51] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1j9sLc-0006Xj-1j; Thu, 05 Mar 2020 15:23:40 +0000 Date: Thu, 5 Mar 2020 16:23:39 +0100 From: Christian Brauner To: Aleksa Sarai Cc: Florian Weimer , David Howells , linux-api@vger.kernel.org, viro@zeniv.linux.org.uk, metze@samba.org, torvalds@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Have RESOLVE_* flags superseded AT_* flags for new syscalls? Message-ID: <20200305152339.3uitms2pua5wzzed@wittgenstein> References: <96563.1582901612@warthog.procyon.org.uk> <20200228152427.rv3crd7akwdhta2r@wittgenstein> <87h7z7ngd4.fsf@oldenburg2.str.redhat.com> <20200302115239.pcxvej3szmricxzu@wittgenstein> <8736arnel9.fsf@oldenburg2.str.redhat.com> <20200302121959.it3iophjavbhtoyp@wittgenstein> <20200302123510.bm3a2zssohwvkaa4@wittgenstein> <87y2sjlygl.fsf@oldenburg2.str.redhat.com> <20200305141154.e246swv62rnctite@yavin> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200305141154.e246swv62rnctite@yavin> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 06, 2020 at 01:11:54AM +1100, Aleksa Sarai wrote: > On 2020-03-02, Florian Weimer wrote: > > * Christian Brauner: > > > One difference to openat() is that openat2() doesn't silently ignore > > > unknown flags. But I'm not sure that would matter for iplementing > > > openat() via openat2() since there are no flags that openat() knows about > > > that openat2() doesn't know about afaict. So the only risks would be > > > programs that accidently have a bit set that isn't used yet. > > > > Will there be any new flags for openat in the future? If not, we can > > just use a constant mask in an openat2-based implementation of openat. > > There is one being proposed at the moment as part of the compressed > read/write work[1]. That work predates openat2() having been merged so there's an argument to be made that it should be on top of openat2() imho. But that assumes people agree with https://lore.kernel.org/linux-fsdevel/3607683.1583419401@warthog.procyon.org.uk/T/#m58c1b6c2697e72e7b42bdbea248178ed31b7d787 and I haven't heard anything in either direction... Christian