1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
* 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.
This commit is contained in:
Ulrich Drepper
2000-05-25 05:02:35 +00:00
parent acb5ee2e56
commit db33f7d4ae
6 changed files with 95 additions and 43 deletions

View File

@ -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();
}