OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e086ec0
)
Don't use ld.so.cache for SUID programs.
author
Joakim Tjernlund
<joakim.tjernlund@transmode.se>
Mon, 11 Oct 2004 08:15:32 +0000
(08:15 -0000)
committer
Joakim Tjernlund
<joakim.tjernlund@transmode.se>
Mon, 11 Oct 2004 08:15:32 +0000
(08:15 -0000)
ldso/ldso/dl-elf.c
patch
|
blob
|
history
diff --git
a/ldso/ldso/dl-elf.c
b/ldso/ldso/dl-elf.c
index
3e4e348
..
1837977
100644
(file)
--- a/
ldso/ldso/dl-elf.c
+++ b/
ldso/ldso/dl-elf.c
@@
-317,7
+317,7
@@
struct elf_resolve *_dl_load_shared_library(int secure, struct dyn_elf **rpnt,
* the hard coded paths that follow (i.e before /lib and /usr/lib).
*/
#ifdef __LDSO_CACHE_SUPPORT__
- if (_dl_cache_addr != NULL && _dl_cache_addr != (caddr_t) - 1) {
+ if (
!_dl_secure &&
_dl_cache_addr != NULL && _dl_cache_addr != (caddr_t) - 1) {
int i;
header_t *header = (header_t *) _dl_cache_addr;
libentry_t *libent = (libentry_t *) & header[1];