Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2231284ybf; Mon, 2 Mar 2020 04:43:15 -0800 (PST) X-Google-Smtp-Source: ADFU+vuPf8/Ofo8gYUbxx3XMcY49vWeuV4DNGoLQnEeNJt56yqkibkqbwjaWmXvsLtS04vyqkj61 X-Received: by 2002:a9d:404b:: with SMTP id o11mr5467158oti.368.1583152995151; Mon, 02 Mar 2020 04:43:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583152995; cv=none; d=google.com; s=arc-20160816; b=0IzObefvzeDqpX7GRgyIeaJ0k1wI1/2m5ix4OrW77RQUvA3FeIrhAWkHeX7Ao98Y/7 ECxt+9cunaMwIQIt15MnZlW0N+jA+35z5ssWZ47pDMba9RIr+I3fQ5Td2vIYNDkxcseU c2Fn8rylH7b+IbH2ZHpz1hTVa4jmu8dOuU9AanzRIPSvWCmGV8eVPJWfFD0/Y0FCod0d 0Z9h13Mq0HXtLLMHY1C7k2cV9yTvF7Rcej+BTcIbSL4PxEPLfZXjxEahkdYT1xPXMWOw v7Vzyt6tKp3j3jQCVy+8iRWDbY5oXKEA0PxSHUjO4C+lg862/J5eR+mL+jqzs/1i1JSu 60ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dkim-signature; bh=jBO8EEOjfex8u0t23SNnR9VcuJJE9A6M8SfZYPDK40Y=; b=S2CJEwvrGXKicMymIb6mwgtLeU3QlQrx6hcohN0lEE8EQaA0HwX0l3+DTVTOuYict2 nHY2/Imi5IjWHSCr4rk15y2/cqaU2CE3Zoold1YYj5ojHLAUs3gHLnm/Hj8fw8BdwoVK 9d47Ezzt3qQnA/MzmiTZY/8zwPSSQHyHPaRE7qtgV1qbiC9foZCC039QfJ9FYzt5PLTc whfipN0OaLmyUR673HsfNY/SqUw+hg3iZOMr6HYHMK468+7E994jfd0KgzeItWiMCo/7 LXGg7XFdSq5zRgMli6yxwpsG+5IHgayTyqVgyjCTpQ0b2OOFer+lxE57cmF6yv016RJu gO7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Y5K1pb1e; 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=pass (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 p26si6052756oto.240.2020.03.02.04.43.03; Mon, 02 Mar 2020 04:43:15 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Y5K1pb1e; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727497AbgCBMm7 (ORCPT + 99 others); Mon, 2 Mar 2020 07:42:59 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:34031 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727228AbgCBMm7 (ORCPT ); Mon, 2 Mar 2020 07:42:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583152977; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jBO8EEOjfex8u0t23SNnR9VcuJJE9A6M8SfZYPDK40Y=; b=Y5K1pb1eDU1H+OS0IKuMxkUc8tvZPft1+rY27mSqT7Mi1Us+NHXC4ZII6bP6nT3b0e5bC6 wemE+D3jvmsImU/3UT4wjG0YRtd2LSGz1fWzzZX7gaXa8+i2OcLxPCnlejwkMhzm6Regeu 9WzuNbkm1B0GZY3DnfCMZjM/OU7sFmQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-327-VdUHncH4OyKzclJAazqbEg-1; Mon, 02 Mar 2020 07:42:56 -0500 X-MC-Unique: VdUHncH4OyKzclJAazqbEg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9ED5F10CE780; Mon, 2 Mar 2020 12:42:54 +0000 (UTC) Received: from oldenburg2.str.redhat.com (ovpn-116-127.ams2.redhat.com [10.36.116.127]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2F46B5DA2C; Mon, 2 Mar 2020 12:42:52 +0000 (UTC) From: Florian Weimer To: Christian Brauner 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? 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> Date: Mon, 02 Mar 2020 13:42:50 +0100 In-Reply-To: <20200302123510.bm3a2zssohwvkaa4@wittgenstein> (Christian Brauner's message of "Mon, 2 Mar 2020 13:35:10 +0100") Message-ID: <87y2sjlygl.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * 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. Thanks, Florian