Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1312971ybc; Tue, 12 Nov 2019 18:38:16 -0800 (PST) X-Google-Smtp-Source: APXvYqw/tOkKcI5HGDAt5+LRgNNdZnvU7VKulNOrGlpfK5KmtlYGHcKom9Wknxi1r2hEPqEiswsx X-Received: by 2002:a17:907:4300:: with SMTP id oa24mr581808ejb.8.1573612696019; Tue, 12 Nov 2019 18:38:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573612696; cv=none; d=google.com; s=arc-20160816; b=viePLs8o/TBFYqnhVU6vxb23zFMQn9l29ecXM4LMlsBM7qJ3ARW6egt5P+j8irDMv3 P2+NKmpxt5NDV19BTa0iRfie52YtH0fIajrMA/QPuuPYGhmcBqx5etWQZeUjuC1321Qi BE3gzJSZavP8S/Z3u/yx42RFZGOQ8Lp6jspnW5/5LkGpX+howidulSjg6xBZQpuV9ONL +6eZj4iP3dpYtNtzBIRe+aLRCiM5jKO0vrbgO7q+U6TIRU+u0SZvAbOwmKDUcKO7ClhO 4ZTdkHxsEottV2Yl1jzX1h6LsKSoKxBqisdNKYL4LAOsZOXvmdONeoBemJUYwZTDjuEQ wD3w== 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=6ux/zX8mTrRE0WjJfy0IvhR7tiUnfT7ls96FoJGFGP8=; b=Q1SlULuMCPQ4qIgPX+L6hszz/R4Fw3EGn783tFsyOMvAcCAs2sx09SnsCziMk7Th4S kkvQoTCyFswI4nDs/vXMrR0oQsy4hxuraRfqL/FxpzpLN7Z742REkdN3DjHziHqNS7zu 4ItCCvsHR52qr3/Ne/RH15DPZy5ifGAhyF4kvJG/Fd4g/FWHEsyDocgd9uAXmDVzDrD+ A9d7Ovhfxl+sDJKAkd8at9k3IdqhGrKwmLA1jAal3sWbGLVs4b0Gn88CocueqJoCTjmy Toe5JNsWh4q4A9HyVoUCQtmpXhGADfVduv8JdaKy4VPA1+mijf9Vqp4h2rWEreOmvWx0 HNDw== 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 p21si313080edc.305.2019.11.12.18.37.51; Tue, 12 Nov 2019 18:38:16 -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 S1727560AbfKMCgQ (ORCPT + 99 others); Tue, 12 Nov 2019 21:36:16 -0500 Received: from mout-p-201.mailbox.org ([80.241.56.171]:38752 "EHLO mout-p-201.mailbox.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727405AbfKMCgO (ORCPT ); Tue, 12 Nov 2019 21:36:14 -0500 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 47CTJ769lnzQlB7; Wed, 13 Nov 2019 03:36:07 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id wVw8SxpwKUfa; Wed, 13 Nov 2019 03:36:01 +0100 (CET) Date: Wed, 13 Nov 2019 13:35:37 +1100 From: Aleksa Sarai To: Al Viro Cc: Jeff Layton , "J. Bruce Fields" , Arnd Bergmann , David Howells , Shuah Khan , Shuah Khan , Ingo Molnar , Peter Zijlstra , Christian Brauner , Eric Biederman , Andy Lutomirski , Andrew Morton , Alexei Starovoitov , Kees Cook , Jann Horn , Tycho Andersen , David Drysdale , Chanho Min , Oleg Nesterov , Rasmus Villemoes , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Aleksa Sarai , Linus Torvalds , containers@lists.linux-foundation.org, linux-alpha@vger.kernel.org, linux-api@vger.kernel.org, libc-alpha@sourceware.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 v15 7/9] open: introduce openat2(2) syscall Message-ID: <20191113023537.epcgw5u2fdbinnyj@yavin.dot.cyphar.com> References: <20191105090553.6350-1-cyphar@cyphar.com> <20191105090553.6350-8-cyphar@cyphar.com> <20191113022906.GD26530@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ohhoiky5cv3wybqd" Content-Disposition: inline In-Reply-To: <20191113022906.GD26530@ZenIV.linux.org.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ohhoiky5cv3wybqd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2019-11-13, Al Viro wrote: > On Tue, Nov 05, 2019 at 08:05:51PM +1100, Aleksa Sarai wrote: > > +/* > > + * Arguments for how openat2(2) should open the target path. If @resol= ve is > > + * zero, then openat2(2) operates very similarly to openat(2). > > + * > > + * However, unlike openat(2), unknown bits in @flags result in -EINVAL= rather > > + * than being silently ignored. @mode must be zero unless one of {O_CR= EAT, > > + * O_TMPFILE} are set, and @upgrade_mask must be zero unless O_PATH is= set. > > + * > > + * @flags: O_* flags. > > + * @mode: O_CREAT/O_TMPFILE file mode. > > + * @upgrade_mask: UPGRADE_* flags (to restrict O_PATH re-opening). >=20 > ??? Sorry, that was left over from a previous revision (where the magic-link re-opening restrictions were part of this series). > > + * @resolve: RESOLVE_* flags. > > + */ > > +struct open_how { > > + __aligned_u64 flags; > > + __u16 mode; > > + __u16 __padding[3]; /* must be zeroed */ > > + __aligned_u64 resolve; > > +}; --=20 Aleksa Sarai Senior Software Engineer (Containers) SUSE Linux GmbH --ohhoiky5cv3wybqd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQSxZm6dtfE8gxLLfYqdlLljIbnQEgUCXctr9QAKCRCdlLljIbnQ Ej91AQDSESPrMbumo+B1bVc2FthUOUuONyqVLG0aRmu7PQjnOgD7BOxMC9suhDip ayqrtLJhXKxmKpbFt69x0a97Rx8tGQ8= =4v0x -----END PGP SIGNATURE----- --ohhoiky5cv3wybqd--