Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2358338ybf; Mon, 2 Mar 2020 07:07:14 -0800 (PST) X-Google-Smtp-Source: APXvYqx5LgpfQ4I++zf2EQrlmIGTb+5D2eyQsSZzJ4rw4kPXpxwlQ2vxq2RTEZwafMNkllNpg1UY X-Received: by 2002:a9d:906:: with SMTP id 6mr10549573otp.251.1583161634014; Mon, 02 Mar 2020 07:07:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583161634; cv=none; d=google.com; s=arc-20160816; b=SVkDJq7G8ZyNnRAcz9nDJx0ZvIV7maE7M8zusB5wfF53gykbB9NC555ubY4l2BNhNW 6VoPBmIoDMkyGMZFu5sFTycAZ4WGWc1JWbd+WuoxKX9bWkcIEh2nKgb1hJPJAtA1ohq8 KI9eoknnkqmrlhl3Vh0n3LzJgKT5MryZD2hpQvK0KmI8Wn0jbUSFbh2NY/sfwjSAasTA 0RRpfPTNuceS8kdyak1C5B3Fg5s9VnVYiGi7AieaHW3hi6xRl7tldK/N0F+PC6cOgl89 HARWSdSWbYKC2OKMPCCgJjeHs51AmpWYO9euo1HkkRVREH3nVgjhfYmH+Ic2ucz2sibC FKrg== 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=LkvHCVMlXzUe1qOlBpgd+N9upOr3By2b2vSBN0VAOAo=; b=PHEOPo8lqWRk0KCRYKbPAzUoIRoUljr7UBDVj6d9ZzzZ49ulfU3mKVyY7lMLjBcvF8 4sCJ+QHKw60tM3w6luspfoWLpUTSojClJOeV/lQ/0Lj5gSVPNgqyRKyZWYUL/lk+wfLv BJyhhfVJsviopgiTgnDRsyXewhfOvnVQv7e6chfMwuXyiIBgCy570JxjYqDph86lABau Ut09XFzFPS8PxSC+7d4ATI1fOSgo/FYESqv/zZvV/46XOyjGzBnIGUOu6Bw0ynsLoszd 1sa0yZCNCKSPYr8oQLMFw5tkqYQhe1Zu1hBvHSfhCjIuSAh1WL/eai6VZYDnWYc6hMMZ osLQ== 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 e8si2367295otj.25.2020.03.02.07.06.55; Mon, 02 Mar 2020 07:07:14 -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 S1727407AbgCBPFQ (ORCPT + 99 others); Mon, 2 Mar 2020 10:05:16 -0500 Received: from mout-p-101.mailbox.org ([80.241.56.151]:30410 "EHLO mout-p-101.mailbox.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727053AbgCBPFQ (ORCPT ); Mon, 2 Mar 2020 10:05:16 -0500 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 48WNjj5B4XzKmgy; Mon, 2 Mar 2020 16:05:13 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter06.heinlein-hosting.de (spamfilter06.heinlein-hosting.de [80.241.56.125]) (amavisd-new, port 10030) with ESMTP id JQEoqVqSuZg2; Mon, 2 Mar 2020 16:05:10 +0100 (CET) Date: Tue, 3 Mar 2020 02:04:59 +1100 From: Aleksa Sarai To: David Howells Cc: Florian Weimer , Christian Brauner , 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: <20200302150459.zu3eo5so66vrji4w@yavin> References: <87h7z7ngd4.fsf@oldenburg2.str.redhat.com> <96563.1582901612@warthog.procyon.org.uk> <20200228152427.rv3crd7akwdhta2r@wittgenstein> <859019.1583159423@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="srr2nycvnmhscg5l" Content-Disposition: inline In-Reply-To: <859019.1583159423@warthog.procyon.org.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --srr2nycvnmhscg5l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2020-03-02, David Howells wrote: > Florian Weimer wrote: >=20 > > Regarding open flags, I think the key point for future APIs is to avoid > > using the set of flags for both control of the operation itself > > (O_NOFOLLOW/AT_SYMLINK_NOFOLLOW, O_NOCTTY) and properaties of the > > resulting descriptor (O_RDWR, O_SYNC). I expect that doing that would > > help code that has to re-create an equivalent descriptor. The operation > > flags are largely irrelevant to that if you can get the descriptor by > > other means. >=20 > It would also be nice to sort out the problem with O_CLOEXEC. That can h= ave a > different value, depending on the arch - so it excludes at least three bi= ts > from the O_* flag set. Not to mention there are (at least?) three or four different values for _CLOEXEC for different syscalls... --=20 Aleksa Sarai Senior Software Engineer (Containers) SUSE Linux GmbH --srr2nycvnmhscg5l Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQSxZm6dtfE8gxLLfYqdlLljIbnQEgUCXl0gmQAKCRCdlLljIbnQ Eo7SAP9PealEn3lKj+b8hZYp6P0KfxGubwWRVoi9l1VdUvarNgD/QAMhskbDrH+M rphWjsN4FWzH+8qNavLDTyruNZ8+nQk= =0CCy -----END PGP SIGNATURE----- --srr2nycvnmhscg5l--