1
0
mirror of https://sourceware.org/git/glibc.git synced 2026-01-06 11:51:29 +03:00

elf: Remove __libc_init_secure

After 73fc4e28b9,
__libc_enable_secure_decided is always 0 and a statically linked
executable may overwrite __libc_enable_secure without considering
AT_SECURE.

The __libc_enable_secure has been correctly initialized in _dl_aux_init,
so just remove __libc_enable_secure_decided and __libc_init_secure.
This allows us to remove some startup_get*id functions from
22b79ed7f4.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
This commit is contained in:
Fangrui Song
2022-04-19 15:52:27 -07:00
parent 78fb888273
commit 3e9acce8c5
8 changed files with 0 additions and 99 deletions

View File

@@ -23,27 +23,3 @@
/* Use macro instead of inline function to avoid including <stdio.h>. */
#define _startup_fatal(message) __libc_fatal ((message))
static inline uid_t
startup_getuid (void)
{
return __getuid ();
}
static inline uid_t
startup_geteuid (void)
{
return __geteuid ();
}
static inline gid_t
startup_getgid (void)
{
return __getgid ();
}
static inline gid_t
startup_getegid (void)
{
return __getegid ();
}