diff options
| author | Marco Vedovati <[email protected]> | 2023-08-10 14:43:53 -0700 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2023-08-14 17:35:32 +0200 |
| commit | 8e50750f122e59ea4cab4b4f696ef22b391bedc9 (patch) | |
| tree | 199435fd4d8b8feca50d67ac2e031ca79be5446c /tools/perf/scripts/python/check-perf-trace.py | |
| parent | 6da4fea89d258ff4816e53345fcbc593104f98ec (diff) | |
libbpf: Set close-on-exec flag on gzopen
Enable the close-on-exec flag when using gzopen. This is especially important
for multithreaded programs making use of libbpf, where a fork + exec could
race with libbpf library calls, potentially resulting in a file descriptor
leaked to the new process. This got missed in 59842c5451fe ("libbpf: Ensure
libbpf always opens files with O_CLOEXEC").
Fixes: 59842c5451fe ("libbpf: Ensure libbpf always opens files with O_CLOEXEC")
Signed-off-by: Marco Vedovati <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions