diff options
author | Qi Wang <interwq@gwu.edu> | 2022-11-02 16:09:06 -0700 |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2022-11-04 13:37:14 -0700 |
commit | 481bbfc9906e7744716677edd49d0d6c22556a1a (patch) | |
tree | bb172f174ca3e1822790d22d4ac704bef3c64aa8 /include/jemalloc | |
parent | 143e9c4a2f4eb8916e9802323485fd91260fd17c (diff) | |
download | jemalloc-481bbfc9906e7744716677edd49d0d6c22556a1a.tar.gz |
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.
Diffstat (limited to 'include/jemalloc')
-rw-r--r-- | include/jemalloc/internal/jemalloc_internal_defs.h.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/jemalloc/internal/jemalloc_internal_defs.h.in b/include/jemalloc/internal/jemalloc_internal_defs.h.in index f5d94ee7..55938433 100644 --- a/include/jemalloc/internal/jemalloc_internal_defs.h.in +++ b/include/jemalloc/internal/jemalloc_internal_defs.h.in @@ -267,6 +267,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. */ #undef JEMALLOC_ZONE |