mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
elf: Add comments on how LD_AUDIT and LD_PRELOAD handle __libc_enable_secure
To make explicit why __libc_enable_secure is not checked. Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
This commit is contained in:
parent
5451fa962c
commit
780c339202
1 changed files with 8 additions and 1 deletions
|
@ -2561,6 +2561,10 @@ process_envvars (struct dl_main_state *state)
|
||||||
process_dl_debug (state, &envline[6]);
|
process_dl_debug (state, &envline[6]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
/* For __libc_enable_secure mode, audit pathnames containing slashes
|
||||||
|
are ignored. Also, shared audit objects are only loaded only from
|
||||||
|
the standard search directories and only if they have set-user-ID
|
||||||
|
mode bit enabled. */
|
||||||
if (memcmp (envline, "AUDIT", 5) == 0)
|
if (memcmp (envline, "AUDIT", 5) == 0)
|
||||||
audit_list_add_string (&state->audit_list, &envline[6]);
|
audit_list_add_string (&state->audit_list, &envline[6]);
|
||||||
break;
|
break;
|
||||||
|
@ -2573,7 +2577,10 @@ process_envvars (struct dl_main_state *state)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* List of objects to be preloaded. */
|
/* For __libc_enable_secure mode, preload pathnames containing slashes
|
||||||
|
are ignored. Also, shared objects are only preloaded from the
|
||||||
|
standard search directories and only if they have set-user-ID mode
|
||||||
|
bit enabled. */
|
||||||
if (memcmp (envline, "PRELOAD", 7) == 0)
|
if (memcmp (envline, "PRELOAD", 7) == 0)
|
||||||
{
|
{
|
||||||
state->preloadlist = &envline[8];
|
state->preloadlist = &envline[8];
|
||||||
|
|
Loading…
Add table
Reference in a new issue