aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-load.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-09-08 00:00:01 -0400
committerUlrich Drepper <drepper@gmail.com>2011-09-08 00:00:01 -0400
commitb49865be8e798e567a23c01f188546aef514ba06 (patch)
tree0bf08a116b94b619107c573aa77fb337ce21140a /elf/dl-load.c
parentfdc86bc9a83c23b08b8f6d4b53df2f56e15f3e85 (diff)
downloadglibc-b49865be8e798e567a23c01f188546aef514ba06.zip
glibc-b49865be8e798e567a23c01f188546aef514ba06.tar.gz
glibc-b49865be8e798e567a23c01f188546aef514ba06.tar.bz2
Use O_CLOEXEC when loading objects in ld.so
Diffstat (limited to 'elf/dl-load.c')
-rw-r--r--elf/dl-load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c
index 7d7008d..e8d0401 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -1706,7 +1706,7 @@ open_verify (const char *name, struct filebuf *fbp, struct link_map *loader,
#endif
/* Open the file. We always open files read-only. */
- int fd = __open (name, O_RDONLY);
+ int fd = __open (name, O_RDONLY | O_CLOEXEC);
if (fd != -1)
{
ElfW(Ehdr) *ehdr;