Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4562ybe; Wed, 4 Sep 2019 14:03:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5spj67ejBUWJ7FF21i+5FxAlLuil0ZMc6uB6Z2Bby7nTbxI8KS1ZaHAGQdPcyT1eAmau6 X-Received: by 2002:a62:1511:: with SMTP id 17mr21154880pfv.119.1567631025933; Wed, 04 Sep 2019 14:03:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567631025; cv=none; d=google.com; s=arc-20160816; b=fV/d+Y7bve1EcW7LwPXZR+OlRIUeaYLQDke92GdtDRAz44Wo5wd8kiuWbK26pfswaH 8cXMUcOn621X/SXpA0/oFn4J2H2k7jm8SZPmUaTSVunQHvw+sfJ4Xz77Jm9endSH8JrZ 00l1ANl+O5IE2Hd9DwdnZrCGeyeflaZeJYJTKVfDOByoC/MOUYUpIFjCFoK/+h4SpjhV 5uJnnpn3VGONoZuKyE9/8fVDyPD+RHWhITn6Bhisd6anlgk+EKJw1XN1qYDghji6YKZM v+8XiAvGMZBVmOsfQYpViwgE1wjSXRbn0Sx6iFtqm2k2RPMP/TLDVlEB9SbR+9iexXd5 k1Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=1C4yzaFGm2dwE00FHfKi5dL3sc9qq3Dq1frkLdiVUqw=; b=qKlFe0IP6/VXPJjqCNoR+xfsM3QmEGKqiBagUQp18stF0xG+NoRJbaDbLVnZoHkqK6 ZXGGN9sN0yQXBswiBl9BKOObgaKzOUzK9LAwMeRs/haC7rIBmgBWS9+6jMMIqsk3dXFE 79y0CxFLYjcBEkc7zy4YE/n4W40p93n/SDnc20lFn/hYNexSMSQ7CNpfADPV1xSTSdOO vgyX/yM+TwtZQzYt/RKTyLQ7LelBthQIaKJZNazRdHlGJhM9k1es8CWlRvLUTkLz6CW4 5XAFQrA8mclo35bcQm1tSK1ea9x94IQOdF3SqNnzeLUc6KJhFwhGzeWu12kOZPHawiVF CYZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=smx+9n2b; 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 j190si17648824pge.92.2019.09.04.14.03.27; Wed, 04 Sep 2019 14:03:45 -0700 (PDT) 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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=smx+9n2b; 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 S1730757AbfIDVA0 (ORCPT + 99 others); Wed, 4 Sep 2019 17:00:26 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:35390 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725965AbfIDVAY (ORCPT ); Wed, 4 Sep 2019 17:00:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=1C4yzaFGm2dwE00FHfKi5dL3sc9qq3Dq1frkLdiVUqw=; b=smx+9n2brd7Qen+GYWPQQhIKw LsHXOmj6SJXN6ngq2DhawrUsC2Js4WfXdX4ZCTTqAZpLgAXuwwv2iT7jrmJ5neLvsb4eJAcXkjrNL AjcV2dvIxzryFJAMSCU0CqPtwgVNzjJzkFqk8pl+N02nYRjfbk78ICCZGJxX+THHzwwK2RqinrIdD 9yxD1/vsztHWf3zNok/bRboi810c1iXKTUCmtyphRgggRgYvXeuRTiAcxecMn7/DvwvvWuYJeSpQm cVgxdDB+FARin5F4v3LjFiWqWLAFNLSXU9BsExHoAQR6AFxACk2w46ZMfB7yt+5oa4qMhcZIdJav2 nmnU8O9PQ==; Received: from [2601:1c0:6200:6e8::e2a8] by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1i5cO6-0002LK-Qx; Wed, 04 Sep 2019 21:00:23 +0000 Subject: Re: [PATCH v12 11/12] open: openat2(2) syscall To: Aleksa Sarai , Al Viro , Jeff Layton , "J. Bruce Fields" , Arnd Bergmann , David Howells , Shuah Khan , Shuah Khan , Ingo Molnar , Peter Zijlstra , Christian Brauner Cc: 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, 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 References: <20190904201933.10736-1-cyphar@cyphar.com> <20190904201933.10736-12-cyphar@cyphar.com> From: Randy Dunlap Message-ID: <5e31b450-75b8-f037-dca7-b1bd547cf339@infradead.org> Date: Wed, 4 Sep 2019 14:00:20 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190904201933.10736-12-cyphar@cyphar.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, just noisy nits here: On 9/4/19 1:19 PM, Aleksa Sarai wrote: > diff --git a/include/uapi/linux/fcntl.h b/include/uapi/linux/fcntl.h > index 1d338357df8a..479baf2da10e 100644 > --- a/include/uapi/linux/fcntl.h > +++ b/include/uapi/linux/fcntl.h > @@ -93,5 +93,47 @@ > > #define AT_RECURSIVE 0x8000 /* Apply to the entire subtree */ > > +/** /** means "the following is kernel-doc", but it's not, so please either make it kernel-doc format or just use /* to begin the comment. > + * Arguments for how openat2(2) should open the target path. If @resolve is > + * zero, then openat2(2) operates identically to openat(2). > + * > + * However, unlike openat(2), unknown bits in @flags result in -EINVAL rather > + * than being silently ignored. In addition, @mode (or @upgrade_mask) must be > + * zero unless one of {O_CREAT, O_TMPFILE, O_PATH} are set. > + * > + * @flags: O_* flags. > + * @mode: O_CREAT/O_TMPFILE file mode. > + * @upgrade_mask: UPGRADE_* flags (to restrict O_PATH re-opening). > + * @resolve: RESOLVE_* flags. > + */ > +struct open_how { > + __u32 flags; > + union { > + __u16 mode; > + __u16 upgrade_mask; > + }; > + __u16 resolve; > +}; -- ~Randy