mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-15 04:20:28 +08:00
533deafbdf
When opening a temporary file without O_CLOEXEC we risk leaking the file descriptor if another thread calls (fork and then) exec while we have the fd open. Fix this by consistently passing O_CLOEXEC everywhere where we open a file for internal use (and not to return it to the user, in which case the API defines whether or not the close-on-exec flag shall be set on the returned fd). Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org> Signed-off-by: Sergey Bugaev <bugaevc@gmail.com> Message-Id: <20230419160207.65988-4-bugaevc@gmail.com> |
||
---|---|---|
.. | ||
sys | ||
gmon.c | ||
Makefile | ||
mcount.c | ||
prof-freq.c | ||
profil.c | ||
sprofil.c | ||
tst-gmon-gprof.sh | ||
tst-gmon-pie.c | ||
tst-gmon-static-gprof.sh | ||
tst-gmon-static-pie.c | ||
tst-gmon-static.c | ||
tst-gmon.c | ||
tst-mcleanup.c | ||
tst-mcount-overflow-check.sh | ||
tst-mcount-overflow.c | ||
tst-profile-static.c | ||
tst-sprofil.c | ||
Versions |