Add a configure option --enable-force-getenv.

Allows the use of getenv() rather than secure_getenv() to read MALLOC_CONF.
This helps in situations where hosts are under full control, and setting
MALLOC_CONF is needed while also setuid.  Disabled by default.
This commit is contained in:
Qi Wang
2022-11-02 16:09:06 -07:00
committed by Qi Wang
parent 143e9c4a2f
commit 481bbfc990
3 changed files with 32 additions and 6 deletions

View File

@@ -266,6 +266,12 @@
*/
#undef JEMALLOC_READLINKAT
/*
* If defined, use getenv() (instead of secure_getenv() or
* alternatives) to access MALLOC_CONF.
*/
#undef JEMALLOC_FORCE_GETENV
/*
* Darwin (OS X) uses zones to work around Mach-O symbol override shortcomings.
*/