Re: [PATCH] Add support for empty path in openat and openat2 syscalls
From: Christian Brauner
Date: Tue Feb 24 2026 - 04:30:52 EST
On Mon, Feb 23, 2026 at 04:16:52PM +0100, Jori Koolstra wrote:
> To get an operable version of an O_PATH file descriptors, 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_EMPTY_PATH flag to openat and openat2. If passed
> LOOKUP_EMPTY is set at path resolve time.
>
> Signed-off-by: Jori Koolstra <jkoolstra@xxxxxxxxx>
> ---
Out of curiosity, did you pick this taken from our uapi-group list?
https://github.com/uapi-group/kernel-features?tab=readme-ov-file#at_empty_path-support-for-openat-and-openat2
https://github.com/uapi-group/kernel-features/issues/47
?