summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2026-09-21 16:15:32 +0200
committerChristian Brauner <brauner@kernel.org>2026-10-05 13:02:40 +0200
commit6395f928f321ba6f057c101675af121b0eb9d9eb (patch)
tree64ed844d64b0f828d95a8e8a8aee855bb9fa34a3 /tools/lib/python
parent4f98366982971b414310181170de714790ee2830 (diff)
downloadlinux-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