diff options
author | kib <kib@FreeBSD.org> | 2015-01-05 01:06:54 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2015-01-05 01:06:54 +0000 |
commit | 6b2710fe565e79b8b3f78ae193d1b68ab1a90bf2 (patch) | |
tree | ae1060e14ffc1f7203b630e4e1e7624871ab2ce0 /lib/libthr/thread/thr_syscalls.c | |
parent | dd81221ce677c9962a2192db095b25098af8a656 (diff) | |
download | FreeBSD-src-6b2710fe565e79b8b3f78ae193d1b68ab1a90bf2.zip FreeBSD-src-6b2710fe565e79b8b3f78ae193d1b68ab1a90bf2.tar.gz |
Avoid calling internal libc function through PLT or accessing data
though GOT, by staticizing and hiding. Add setter for
__error_selector to hide it as well.
Suggested and reviewed by: jilles
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Diffstat (limited to 'lib/libthr/thread/thr_syscalls.c')
-rw-r--r-- | lib/libthr/thread/thr_syscalls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_syscalls.c b/lib/libthr/thread/thr_syscalls.c index 60427d8..a4fe7e8 100644 --- a/lib/libthr/thread/thr_syscalls.c +++ b/lib/libthr/thread/thr_syscalls.c @@ -692,7 +692,7 @@ void __thr_interpose_libc(void) { - __error_selector = __error_threaded; + __set_error_selector(__error_threaded); #define SLOT(name) \ *(__libc_interposing_slot(INTERPOS_##name)) = \ (interpos_func_t)__thr_##name; |