diff options
| author | Christian Brauner <brauner@kernel.org> | 2026-09-21 16:15:32 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-10-05 13:02:40 +0200 |
| commit | 6395f928f321ba6f057c101675af121b0eb9d9eb (patch) | |
| tree | 64ed844d64b0f828d95a8e8a8aee855bb9fa34a3 /tools/lib/python | |
| parent | 4f98366982971b414310181170de714790ee2830 (diff) | |
| download | linux-next-6395f928f321ba6f057c101675af121b0eb9d9eb.tar.gz linux-next-6395f928f321ba6f057c101675af121b0eb9d9eb.zip | |
file: let dup_fd() drop everything outside of the range
Add FD_RANGE_EXCEPT. It turns the meaning of range around. Instead of
indicating that the descriptors in the range are the ones that are left
out of the copy they indicate the range that makes it into the copy. All
other files are left behind. The clone only has to reach the last open
descriptor inside the range.
Nothing passes the flag yet.
Link: https://patch.msgid.link/20260921-work-file-close_range_except-v1-4-c20d0b49270d@kernel.org
Reviewed-by: Jann Horn <jannh@google.com>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
