mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-05 13:27:19 +03:00
Ignore MALLOC_CONF in set{uid,gid,cap} binaries.
This eliminates the malloc tunables as tools for an attacker. Closes #173
This commit is contained in:
parent
e12eaf93dc
commit
b74041fb6e
3 changed files with 50 additions and 1 deletions
|
|
@ -66,6 +66,16 @@
|
|||
*/
|
||||
#undef JEMALLOC_OSSPIN
|
||||
|
||||
/*
|
||||
* Defined if secure_getenv(3) is available.
|
||||
*/
|
||||
#undef JEMALLOC_HAVE_SECURE_GETENV
|
||||
|
||||
/*
|
||||
* Defined if issetugid(2) is available.
|
||||
*/
|
||||
#undef JEMALLOC_HAVE_ISSETUGID
|
||||
|
||||
/*
|
||||
* Defined if _malloc_thread_cleanup() exists. At least in the case of
|
||||
* FreeBSD, pthread_key_create() allocates, which if used during malloc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue