mirror of
https://github.com/topjohnwu/selinux.git
synced 2025-02-24 13:22:41 +00:00
libselinux: Hide unnecessarily-exported library destructors
Description: Hide unnecessarily-exported library destructors This change was extracted from the old monolithic Debian patch. Signed-off-by: Laurent Bigonville <bigon@debian.org> Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
f7a75f1761
commit
a4f84109b5
@ -294,7 +294,7 @@ static void matchpathcon_thread_destructor(void __attribute__((unused)) *ptr)
|
||||
|
||||
void __attribute__((destructor)) matchpathcon_lib_destructor(void);
|
||||
|
||||
void __attribute__((destructor)) matchpathcon_lib_destructor(void)
|
||||
void hidden __attribute__((destructor)) matchpathcon_lib_destructor(void)
|
||||
{
|
||||
if (destructor_key_initialized)
|
||||
__selinux_key_delete(destructor_key);
|
||||
|
@ -255,7 +255,7 @@ static void setrans_thread_destructor(void __attribute__((unused)) *unused)
|
||||
|
||||
void __attribute__((destructor)) setrans_lib_destructor(void);
|
||||
|
||||
void __attribute__((destructor)) setrans_lib_destructor(void)
|
||||
void hidden __attribute__((destructor)) setrans_lib_destructor(void)
|
||||
{
|
||||
if (destructor_key_initialized)
|
||||
__selinux_key_delete(destructor_key);
|
||||
|
Loading…
x
Reference in New Issue
Block a user