summaryrefslogtreecommitdiff
path: root/include/jemalloc
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2022-11-02 16:09:06 -0700
committerQi Wang <interwq@gmail.com>2022-11-04 13:37:14 -0700
commit481bbfc9906e7744716677edd49d0d6c22556a1a (patch)
treebb172f174ca3e1822790d22d4ac704bef3c64aa8 /include/jemalloc
parent143e9c4a2f4eb8916e9802323485fd91260fd17c (diff)
downloadjemalloc-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.in6
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