mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
elf: Ignore loader debug env vars for setuid
Loader already ignores LD_DEBUG, LD_DEBUG_OUTPUT, and LD_TRACE_LOADED_OBJECTS. Both LD_WARN and LD_VERBOSE are similar to LD_DEBUG, in the sense they enable additional checks and debug information, so it makes sense to disable them. Also add both LD_VERBOSE and LD_WARN on filtered environment variables for setuid binaries. Checked on x86_64-linux-gnu. Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
This commit is contained in:
@@ -59,6 +59,10 @@ static const struct envvar_t filtered_envvars[] =
|
||||
{ "MALLOC_TRACE", FILTERED_VALUE },
|
||||
{ "MALLOC_TRIM_THRESHOLD_", FILTERED_VALUE },
|
||||
{ "RES_OPTIONS", FILTERED_VALUE },
|
||||
{ "LD_DEBUG", "all" },
|
||||
{ "LD_DEBUG_OUTPUT", "/tmp/some-file" },
|
||||
{ "LD_WARN", FILTERED_VALUE },
|
||||
{ "LD_VERBOSE", FILTERED_VALUE },
|
||||
};
|
||||
|
||||
static const struct envvar_t unfiltered_envvars[] =
|
||||
|
Reference in New Issue
Block a user