From db33f7d4aef7422140d5e19c440bb5e084fbe186 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 25 May 2000 05:02:35 +0000 Subject: Update. * csu/Makefile (routines): Add check_fds. * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID binaries. Add various __builtin_expect. * sysdeps/generic/libc-start.c: Move check_fds and helper functions... * sysdeps/generic/check_fds.c: ...here. New file. * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID binaries if file /etc/suid-debug is available. --- malloc/malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'malloc') diff --git a/malloc/malloc.c b/malloc/malloc.c index 7f33ebf252..21cb9d98d9 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -1722,7 +1722,7 @@ ptmalloc_init __MALLOC_P((void)) __malloc_hook = save_malloc_hook; __free_hook = save_free_hook; #endif - if(s) { + if(s && (! __libc_enable_secure || access ("/etc/suid-debug", F_OK) == 0)) { if(s[0]) mALLOPt(M_CHECK_ACTION, (int)(s[0] - '0')); __malloc_check_init(); } -- cgit v1.2.3