This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch, master, updated. glibc-2.14-257-gb49865b


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  b49865be8e798e567a23c01f188546aef514ba06 (commit)
      from  fdc86bc9a83c23b08b8f6d4b53df2f56e15f3e85 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=b49865be8e798e567a23c01f188546aef514ba06

commit b49865be8e798e567a23c01f188546aef514ba06
Author: Ulrich Drepper <drepper@gmail.com>
Date:   Thu Sep 8 00:00:01 2011 -0400

    Use O_CLOEXEC when loading objects in ld.so

diff --git a/ChangeLog b/ChangeLog
index 0d2580d..94d502a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
 
+	* elf/dl-load.c (open_verify): Use O_CLOEXEC.
+
 	* elf/dl-libc.c (dlerror_run): Pass back error code from
 	dl_catch_error.
 
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;

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog     |    2 ++
 elf/dl-load.c |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]