]> git.ipfire.org Git - thirdparty/linux.git/commit
nsfs: support exhaustive file handles
authorChristian Brauner <brauner@kernel.org>
Fri, 12 Sep 2025 11:52:52 +0000 (13:52 +0200)
committerChristian Brauner <brauner@kernel.org>
Fri, 19 Sep 2025 12:26:16 +0000 (14:26 +0200)
commite83f0b5d10dcf62833008327cb661c7d118bca85
tree8aea9ee6ffc99baf11533a770fc683efe76c8db9
parent5222470b2fbb3740f931f189db33dd1367b1ae75
nsfs: support exhaustive file handles

Pidfd file handles are exhaustive meaning they don't require a handle on
another pidfd to pass to open_by_handle_at() so it can derive the
filesystem to decode in. Instead it can be derived from the file
handle itself. The same is possible for namespace file handles.

Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/fhandle.c
fs/internal.h
fs/nsfs.c
include/uapi/linux/fcntl.h