mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
elf: Remove __libc_init_secure
After73fc4e28b9
, __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 from22b79ed7f4
. Reviewed-by: Florian Weimer <fweimer@redhat.com>
This commit is contained in:
@ -32,30 +32,6 @@ _startup_fatal (const char *message __attribute__ ((unused)))
|
||||
ABORT_INSTRUCTION;
|
||||
__builtin_unreachable ();
|
||||
}
|
||||
|
||||
static inline uid_t
|
||||
startup_getuid (void)
|
||||
{
|
||||
return (uid_t) INTERNAL_SYSCALL_CALL (getuid32);
|
||||
}
|
||||
|
||||
static inline uid_t
|
||||
startup_geteuid (void)
|
||||
{
|
||||
return (uid_t) INTERNAL_SYSCALL_CALL (geteuid32);
|
||||
}
|
||||
|
||||
static inline gid_t
|
||||
startup_getgid (void)
|
||||
{
|
||||
return (gid_t) INTERNAL_SYSCALL_CALL (getgid32);
|
||||
}
|
||||
|
||||
static inline gid_t
|
||||
startup_getegid (void)
|
||||
{
|
||||
return (gid_t) INTERNAL_SYSCALL_CALL (getegid32);
|
||||
}
|
||||
#else
|
||||
# include_next <startup.h>
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user