From c6222ab921cee390ea3aab57795e028d587b77e2 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 17 Feb 1998 18:23:42 +0000 Subject: Update. 1998-02-17 17:41 Ulrich Drepper * elf/dl-load.c (open_path): Take extra argument PRELOADED. If PRELOADED is nonzero check in case of an SUID application whether the shared object has the SUID bit set. Fix some other problems with handling shared objects in system specific directories. (_dl_map_object): Also take extra parameter and pass it to open_path. * elf/link.h (_dl_map_object): Correct prototype and comment. * elf/rtld.c (dl_main): Call _dl_map_object correctly. * elf/dl-open.c (_dl_open): Likewise. * elf/dl-deps.c (openaux, _dl_map_object_deps): Likewise. * sysdeps/libm-ieee754/s_modfl.c: Handle numbers > 1.0 correctly. * math/libm-test.c (modf_test): Add test for 1.5. --- elf/link.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'elf/link.h') diff --git a/elf/link.h b/elf/link.h index 7f2dc674db..67701a13b7 100644 --- a/elf/link.h +++ b/elf/link.h @@ -296,10 +296,12 @@ extern int _dlerror_run (void (*operate) (void *), void *args); /* Open the shared object NAME and map in its segments. LOADER's DT_RPATH is used in searching for NAME. - If the object is already opened, returns its existing map. */ + If the object is already opened, returns its existing map. + For preloaded shared objects PRELOADED is set to a non-zero + value to allow additional security checks. */ extern struct link_map *_dl_map_object (struct link_map *loader, - const char *name, int type, - int trace_mode); + const char *name, int preloaded, + int type, int trace_mode); /* Call _dl_map_object on the dependencies of MAP, and set up MAP->l_searchlist. PRELOADS points to a vector of NPRELOADS previously -- cgit v1.2.3