about summary refs log tree commit diff
path: root/elf/dl-open.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-01-13 02:08:37 +0000
committerUlrich Drepper <drepper@redhat.com>2005-01-13 02:08:37 +0000
commit3e539cb47e9fabfdda295926b4270b0f3cc7fa65 (patch)
tree12514bb60d33e94928e47d00f758d43debd7aa02 /elf/dl-open.c
parent1b85ed0ce299a8044e8417ca82e85cf6267d520a (diff)
downloadglibc-3e539cb47e9fabfdda295926b4270b0f3cc7fa65.tar.gz
glibc-3e539cb47e9fabfdda295926b4270b0f3cc7fa65.tar.xz
glibc-3e539cb47e9fabfdda295926b4270b0f3cc7fa65.zip
* elf/dl-load.c (_dl_map_object_from_fd): We don't have to allow
	callers from libc anymore.

	* elf/dl-open.c (dl_open_worker): Pass __RTLD_AUDIT flag from caller
	to _dl_map_object_deps.
	* elf/dl-load.c (_dl_map_object_from_fd): Don't change memory
	protections when loading auditing modules.

	* dlfcn/dlopen.c (dlopen_doit): Catch invalid mode arguments and fail.
Diffstat (limited to 'elf/dl-open.c')
-rw-r--r--elf/dl-open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-open.c b/elf/dl-open.c
index c2cf1dbf13..4de20720ed 100644
--- a/elf/dl-open.c
+++ b/elf/dl-open.c
@@ -305,7 +305,7 @@ dl_open_worker (void *a)
 
   /* Load that object's dependencies.  */
   _dl_map_object_deps (new, NULL, 0, 0,
-		       mode & (__RTLD_DLOPEN | RTLD_DEEPBIND));
+		       mode & (__RTLD_DLOPEN | RTLD_DEEPBIND | __RTLD_AUDIT));
 
   /* So far, so good.  Now check the versions.  */
   for (i = 0; i < new->l_searchlist.r_nlist; ++i)