Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2240672ybf; Mon, 2 Mar 2020 04:55:50 -0800 (PST) X-Google-Smtp-Source: ADFU+vtOCvz8XNk1Tiz+utTXiT82Ykf6xnBa01uhDY9Ch8qBHbf2Z69kn/c+HO7wvb/9x/MlRnZH X-Received: by 2002:a05:6830:1e9b:: with SMTP id n27mr6599601otr.358.1583153750243; Mon, 02 Mar 2020 04:55:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583153750; cv=none; d=google.com; s=arc-20160816; b=GcTFf5GRFFDYdcvDfLyE3bvwW6ga7KxNrPOBm+LoWt7+UyCeDPsQb9b7L8TND+xseh 5g64t/SyA6MdNJLRoL+WQu0BHNakqtwRVknaTkl3bLFGdv/BqxugEa6Q/1d8Y3/sXVb1 youC/vXpScxU+rcjc2EqIvofPhBdywnYrMISIBO9KWe7ZcdHzIxSli9cCFAOdivRgUit M295oCYj/kACxTpTk4rxX/mDAwLaQKZlwJT61+lytyurDl21lyj1Y93ubcVLwdgWOkS4 PQw977awXBPLN5POiPMNjs8yHTuT1Lvr4RQjOX0bwJNaKVcTO4if9cTbVwgY6yQ5+GXl UKZw== 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=Tj3B/oqg/9KBVkSa+57Yaq3+ksUZgB9YaOyX5Ep6Vhc=; b=aWrd6k7nfZE6saWllS/SIXw15rsu8s++8wccKGYcSPxt+3OpTsmk5r5XJO9+WJVAkv efTAaVcj92i+22nxMc48a98ZhHEkCBIrF4QM6dJLzugJFKjHgjt8sEu87Ug+dgA6MfU0 KWfEP9afS+9sXjByneCfPa+rwc9DRzcmcIV5w54mL9CU17ZDpz005ViJaKaGfqbuDlfC XvFdOnOa5+RRNn1Sxo/3ucL1E6VgGFuakjLF7GvWPUOW10XmpQMB0fuD0NUjtvfuu4D0 mG7cxf/Ifsn8zC+8RBnt5S+Fmjxd1U1Lz8cfK8DvL/w+NYmDX6EYOMh3q0ACNTOS80/Z Sw9w== 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 r1si6156208otn.150.2020.03.02.04.55.38; Mon, 02 Mar 2020 04:55:50 -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 S1727851AbgCBMze (ORCPT + 99 others); Mon, 2 Mar 2020 07:55:34 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:56364 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727173AbgCBMze (ORCPT ); Mon, 2 Mar 2020 07:55:34 -0500 Received: from ip5f5bf7ec.dynamic.kabel-deutschland.de ([95.91.247.236] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1j8kbc-0005MT-1m; Mon, 02 Mar 2020 12:55:32 +0000 Date: Mon, 2 Mar 2020 13:55:31 +0100 From: Christian Brauner To: Florian Weimer Cc: David Howells , linux-api@vger.kernel.org, viro@zeniv.linux.org.uk, metze@samba.org, torvalds@linux-foundation.org, cyphar@cyphar.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Have RESOLVE_* flags superseded AT_* flags for new syscalls? Message-ID: <20200302125531.7z2viveb3zxhqkuj@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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87y2sjlygl.fsf@oldenburg2.str.redhat.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 02, 2020 at 01:42:50PM +0100, 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. From past experiences with other syscalls I would expect that any new features would only be available through openat2(). The way I see it in general is that a revised version of a syscall basically deprecates the old syscall _wrt to new features_, i.e. new features will only be available through the revised version unless there are very strong reasons to also allow it in the old version (security bug or whatever). (But I don't want to be presumptuous here and pretend I can make any definiteve statement. Ultimately it's up to the community, I guess. :)) Christian