Re: [PATCH v5 1/2] vfs: add O_EMPTYPATH to openat(2)/openat2(2)
From: Christian Brauner
Date: Mon May 11 2026 - 06:32:05 EST
On Fri, 24 Apr 2026 13:46:02 +0200, Jori Koolstra <jkoolstra@xxxxxxxxx> wrote:
> To get an operable version of an O_PATH file descriptor, it is possible
> to use openat(fd, ".", O_DIRECTORY) for directories, but other files
> currently require going through open("/proc/<pid>/fd/<nr>"), which
> depends on a functioning procfs.
>
> This patch adds the O_EMPTYPATH flag to openat(2)/openat2(2). If passed,
> LOOKUP_EMPTY is set at path resolution time.
>
> [...]
Reviewed-by: Christian Brauner <brauner@xxxxxxxxxx>
--
Christian Brauner <brauner@xxxxxxxxxx>