All of lore.kernel.org
 help / color / mirror / Atom feed
From: Al Viro <viro@zeniv.linux.org.uk>
To: Aleksa Sarai <cyphar@cyphar.com>
Cc: Song Liu <songliubraving@fb.com>,
	linux-ia64@vger.kernel.org, linux-doc@vger.kernel.org,
	Peter Zijlstra <peterz@infradead.org>,
	Rasmus Villemoes <linux@rasmusvillemoes.dk>,
	Alexei Starovoitov <ast@kernel.org>,
	linux-kernel@vger.kernel.org, David Howells <dhowells@redhat.com>,
	linux-kselftest@vger.kernel.org, sparclinux@vger.kernel.org,
	containers@lists.linux-foundation.org, linux-api@vger.kernel.org,
	Shuah Khan <shuah@kernel.org>,
	linux-arch@vger.kernel.org, linux-s390@vger.kernel.org,
	Tycho Andersen <tycho@tycho.ws>,
	Daniel Borkmann <daniel@iogearbox.net>,
	Jonathan Corbet <corbet@lwn.net>, Jiri Olsa <jolsa@redhat.com>,
	linux-sh@vger.kernel.org,
	Alexander Shishkin <alexander.shishkin@linux.intel.com>,
	Ingo Molnar <mingo@redhat.com>,
	linux-arm-kernel@lists.infradead.org, Yonghong Song <yhs@fb.com>,
	linux-mips@vger.kernel.org, Andrii Nakryiko <andriin@fb.com>,
	bpf@vger.ke
Subject: Re: [PATCH v17 11/13] open: introduce openat2(2) syscall
Date: Mon, 25 Nov 2019 00:37:24 +0000	[thread overview]
Message-ID: <20191125003724.GG4203@ZenIV.linux.org.uk> (raw)
In-Reply-To: <20191117011713.13032-12-cyphar@cyphar.com>

On Sun, Nov 17, 2019 at 12:17:11PM +1100, Aleksa Sarai wrote:

> +/* how->upgrade flags for openat2(2). */
> +/* First bit is reserved for a future UPGRADE_NOEXEC flag. */
> +#define UPGRADE_NOREAD		0x02 /* Block re-opening with MAY_READ. */
> +#define UPGRADE_NOWRITE		0x04 /* Block re-opening with MAY_WRITE. */

I'd drop that chunk, for the lack of ->upgrade...

WARNING: multiple messages have this Message-ID (diff)
From: Al Viro <viro@zeniv.linux.org.uk>
To: Aleksa Sarai <cyphar@cyphar.com>
Cc: Song Liu <songliubraving@fb.com>,
	linux-ia64@vger.kernel.org, linux-doc@vger.kernel.org,
	Peter Zijlstra <peterz@infradead.org>,
	Rasmus Villemoes <linux@rasmusvillemoes.dk>,
	Alexei Starovoitov <ast@kernel.org>,
	linux-kernel@vger.kernel.org, David Howells <dhowells@redhat.com>,
	linux-kselftest@vger.kernel.org, sparclinux@vger.kernel.org,
	containers@lists.linux-foundation.org, linux-api@vger.kernel.org,
	Shuah Khan <shuah@kernel.org>,
	linux-arch@vger.kernel.org, linux-s390@vger.kernel.org,
	Tycho Andersen <tycho@tycho.ws>,
	Daniel Borkmann <daniel@iogearbox.net>,
	Jonathan Corbet <corbet@lwn.net>, Jiri Olsa <jolsa@redhat.com>,
	linux-sh@vger.kernel.org,
	Alexander Shishkin <alexander.shishkin@linux.intel.com>,
	Ingo Molnar <mingo@redhat.com>,
	linux-arm-kernel@lists.infradead.org, Yonghong Song <yhs@fb.com>,
	linux-mips@vger.kernel.org, Andrii Nakryiko <andriin@fb.com>,
	bpf@vger.kernel.org, linux-xtensa@linux-xtensa.org,
	Kees Cook <keescook@chromium.org>, Arnd Bergmann <arnd@arndb.de>,
	Jann Horn <jannh@google.com>,
	linuxppc-dev@lists.ozlabs.org, dev@opencontainers.org,
	linux-m68k@lists.linux-m68k.org,
	Andy Lutomirski <luto@kernel.org>,
	Shuah Khan <skhan@linuxfoundation.org>,
	Namhyung Kim <namhyung@kernel.org>,
	David Drysdale <drysdale@google.com>,
	Christian Brauner <christian@brauner.io>,
	"J. Bruce Fields" <bfields@fieldses.org>,
	libc-alpha@sourceware.org, Aleksa Sarai <asarai@suse.de>,
	linux-parisc@vger.kernel.org, netdev@vger.kernel.org,
	Chanho Min <chanho.min@lge.com>, Jeff Layton <jlayton@kernel.org>,
	Oleg Nesterov <oleg@redhat.com>,
	Eric Biederman <ebiederm@xmission.com>,
	linux-alpha@vger.kernel.org, linux-fsdevel@vger.kernel.org,
	Andrew Morton <akpm@linux-foundation.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Martin KaFai Lau <kafai@fb.com>
Subject: Re: [PATCH v17 11/13] open: introduce openat2(2) syscall
Date: Mon, 25 Nov 2019 00:37:24 +0000	[thread overview]
Message-ID: <20191125003724.GG4203@ZenIV.linux.org.uk> (raw)
In-Reply-To: <20191117011713.13032-12-cyphar@cyphar.com>

On Sun, Nov 17, 2019 at 12:17:11PM +1100, Aleksa Sarai wrote:

> +/* how->upgrade flags for openat2(2). */
> +/* First bit is reserved for a future UPGRADE_NOEXEC flag. */
> +#define UPGRADE_NOREAD		0x02 /* Block re-opening with MAY_READ. */
> +#define UPGRADE_NOWRITE		0x04 /* Block re-opening with MAY_WRITE. */

I'd drop that chunk, for the lack of ->upgrade...

  reply	other threads:[~2019-11-25  0:37 UTC|newest]

Thread overview: 81+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-17  1:17 [PATCH v17 00/13] open: introduce openat2(2) syscall Aleksa Sarai
2019-11-17  1:17 ` Aleksa Sarai
2019-11-17  1:17 ` Aleksa Sarai
2019-11-17  1:17 ` Aleksa Sarai
2019-11-17  1:17 ` Aleksa Sarai
2019-11-17  1:17 ` [PATCH v17 01/13] namei: only return -ECHILD from follow_dotdot_rcu() Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17 ` [PATCH v17 02/13] nsfs: clean-up ns_get_path() signature to return int Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17 ` [PATCH v17 03/13] namei: allow nd_jump_link() to produce errors Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17 ` [PATCH v17 04/13] namei: allow set_root() " Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17 ` [PATCH v17 05/13] namei: LOOKUP_NO_SYMLINKS: block symlink resolution Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17 ` [PATCH v17 06/13] namei: LOOKUP_NO_MAGICLINKS: block magic-link resolution Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17 ` [PATCH v17 07/13] namei: LOOKUP_NO_XDEV: block mountpoint crossing Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17 ` [PATCH v17 08/13] namei: LOOKUP_BENEATH: O_BENEATH-like scoped resolution Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-25  0:26   ` Al Viro
2019-11-25  0:26     ` Al Viro
2019-11-25  6:03     ` Aleksa Sarai
2019-11-25  6:03       ` Aleksa Sarai
2019-11-17  1:17 ` [PATCH v17 09/13] namei: LOOKUP_IN_ROOT: chroot-like " Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17 ` [PATCH v17 10/13] namei: LOOKUP_{IN_ROOT,BENEATH}: permit limited ".." resolution Aleksa Sarai
2019-11-17  1:17   ` [PATCH v17 10/13] namei: LOOKUP_{IN_ROOT, BENEATH}: " Aleksa Sarai
2019-11-17  1:17   ` [PATCH v17 10/13] namei: LOOKUP_{IN_ROOT,BENEATH}: " Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-25  0:35   ` Al Viro
2019-11-25  0:35     ` Al Viro
2019-11-25 13:21     ` Aleksa Sarai
2019-11-25 13:21       ` Aleksa Sarai
2019-11-28 10:10       ` Aleksa Sarai
2019-11-28 10:10         ` Aleksa Sarai
2019-11-17  1:17 ` [PATCH v17 11/13] open: introduce openat2(2) syscall Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-25  0:37   ` Al Viro [this message]
2019-11-25  0:37     ` Al Viro
2019-11-17  1:17 ` [PATCH v17 12/13] selftests: add openat2(2) selftests Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:17   ` Aleksa Sarai
2019-11-17  1:28 ` [PATCH v17 13/13] Documentation: path-lookup: include new LOOKUP flags Aleksa Sarai
2019-11-17  1:28   ` Aleksa Sarai
2019-11-17  1:28   ` Aleksa Sarai
2019-11-17  1:28   ` Aleksa Sarai
2019-11-17  1:28   ` Aleksa Sarai
2019-11-25  0:39 ` [PATCH v17 00/13] open: introduce openat2(2) syscall Al Viro
2019-11-25  0:39   ` Al Viro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191125003724.GG4203@ZenIV.linux.org.uk \
    --to=viro@zeniv.linux.org.uk \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=andriin@fb.com \
    --cc=ast@kernel.org \
    --cc=bpf@vger.ke \
    --cc=containers@lists.linux-foundation.org \
    --cc=corbet@lwn.net \
    --cc=cyphar@cyphar.com \
    --cc=daniel@iogearbox.net \
    --cc=dhowells@redhat.com \
    --cc=jolsa@redhat.com \
    --cc=linux-api@vger.kernel.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-ia64@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=linux-sh@vger.kernel.org \
    --cc=linux@rasmusvillemoes.dk \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=shuah@kernel.org \
    --cc=songliubraving@fb.com \
    --cc=sparclinux@vger.kernel.org \
    --cc=tycho@tycho.ws \
    --cc=yhs@fb.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.