glibc/iconv
Sergey Bugaev 533deafbdf Use O_CLOEXEC in more places (BZ #15722)
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>
2023-04-22 13:50:14 +02:00
..
dummy-repertoire.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
gconv_builtin.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
gconv_builtin.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
gconv_cache.c Use O_CLOEXEC in more places (BZ #15722) 2023-04-22 13:50:14 +02:00
gconv_charset.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
gconv_charset.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
gconv_close.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
gconv_conf.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
gconv_db.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
gconv_dl.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
gconv_int.h iconv: Remove _STRING_ARCH_unaligned usage for get/set macros 2023-02-17 15:56:54 -03:00
gconv_open.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
gconv_parseconfdir.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
gconv_simple.c iconv: Remove _STRING_ARCH_unaligned usage 2023-02-17 15:56:54 -03:00
gconv_trans.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
gconv.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
gconv.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
iconv_charmap.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
iconv_close.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
iconv_open.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
iconv_prog.c Update copyright dates not handled by scripts/update-copyrights 2023-01-06 21:45:36 +00:00
iconv_prog.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
iconv.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
iconv.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
iconvconfig.c Update copyright dates not handled by scripts/update-copyrights 2023-01-06 21:45:36 +00:00
iconvconfig.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
loop.c iconv: Remove _STRING_ARCH_unaligned usage 2023-02-17 15:56:54 -03:00
Makefile Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
skeleton.c iconv: Remove _STRING_ARCH_unaligned usage 2023-02-17 15:56:54 -03:00
strtab.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
test-gconv-modules Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-gconv-init-failure-mod.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-gconv-init-failure.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-iconv1.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
tst-iconv2.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-iconv3.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
tst-iconv4.c [BZ #9793] 2009-02-03 01:31:30 +00:00
tst-iconv5.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-iconv6.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-iconv7.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-iconv8.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-iconv9.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-iconv_prog.sh Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-iconv-mt.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-iconv-opt.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Versions intl: Handle translation output codesets with suffixes [BZ #26383] 2020-09-25 14:47:06 +02:00