diff options
| author | Christian Brauner <brauner@kernel.org> | 2026-09-21 16:15:36 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-10-05 13:02:40 +0200 |
| commit | 4587f99cc2c87079167b18e284f64b66cafade76 (patch) | |
| tree | a43b69e414d43d00f90ea9297d8806a0809db0e4 /tools/lib/python | |
| parent | 4ee7588bbbfa67ebea345e1e36fbb370872c1e53 (diff) | |
| download | linux-next-4587f99cc2c87079167b18e284f64b66cafade76.tar.gz linux-next-4587f99cc2c87079167b18e284f64b66cafade76.zip | |
file: let dup_fd() drop only close-on-exec descriptors
Add FD_RANGE_CLOEXEC_ONLY. When set dup_fd() leaves everything behind
except for fds that are close-on-exec. Without FD_RANGE_EXCEPT the
clone loses the close-on-exec descriptors in the range. With it the
clone keeps the range and loses the close-on-exec descriptors everywhere
else. Descriptors without the flag are carried over either way.
Nothing passes the flag yet.
Link: https://patch.msgid.link/20260921-work-file-close_range_except-v1-8-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
