|
|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Tue, 27 Mar 2012, Laurent Bigonville <bigon@xxxxxxxxxx> wrote:
> Description: Hide unnecessarily-exported library destructors
> This change was extracted from the old monolithic Debian patch. I have
> not been able to find an explanation for why it is needed, but it should
> be forwarded upstream for review.
> .
> Author: Unknown
This is needed because the Debian build system whinges when the list of
exports changes. There was never a need to have them exported so it was best
to just make them hidden.
I think I wrote the patch in question.
> ---
> Forwarded: no
> Last-Update: 2011-10-13
>
> --- a/libselinux/src/matchpathcon.c
> +++ b/libselinux/src/matchpathcon.c
> @@ -291,7 +291,7 @@ static void matchpathcon_thread_destruct
> matchpathcon_fini();
> }
>
> -void __attribute__((destructor)) matchpathcon_lib_destructor(void)
> +void hidden __attribute__((destructor)) matchpathcon_lib_destructor(void)
> {
> if (destructor_key_initialized)
> __selinux_key_delete(destructor_key);
> --- libselinux-2.1.0.orig/src/setrans_client.c
> +++ libselinux-2.1.0/src/setrans_client.c
> @@ -253,7 +253,7 @@ static void setrans_thread_destructor(vo
> free(prev_r2c_raw);
> }
>
> -void __attribute__((destructor)) setrans_lib_destructor(void)
> +void hidden __attribute__((destructor)) setrans_lib_destructor(void)
> {
> if (destructor_key_initialized)
> __selinux_key_delete(destructor_key);
>
> --
> This message was distributed to subscribers of the selinux mailing list.
> If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx
> with the words "unsubscribe selinux" without quotes as the message.
--
My Main Blog http://etbe.coker.com.au/
My Documents Blog http://doc.coker.com.au/
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.
[Fedora Users] [Fedora Legacy] [Fedora Desktop] [Yosemite Photos] [Yosemite News] [Yosemite Campsites] [KDE Users] [Gnome Users]