selinux/libselinux
Nicolas Iooss 398d2ceef9 libselinux: rename gettid() to something which never conflicts with the libc
Musl recently added a wrapper for gettid() syscall. There is no way to
detect this new version in a reliable way, so rename our gettid()
wrapper to a non-conflicting name.

Introduce a new function which, when using a libc known to provide a
wrapper for gettid(), calls it, and which, otherwise, performs the
syscall directly.

Anyway this function is only used on systems where /proc/thread-self
does not exist, which are therefore running Linux<3.17.

Fixes: https://github.com/SELinuxProject/selinux/issues/282
Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
Acked-by: Petr Lautrbach <plautrba@redhat.com>
2021-02-19 15:19:31 +01:00
..
include libselinux: accept const fromcon in get_context API 2021-01-20 16:53:34 +01:00
man selinux(8,5): Describe fcontext regular expressions 2021-02-19 15:18:05 +01:00
src libselinux: rename gettid() to something which never conflicts with the libc 2021-02-19 15:19:31 +01:00
utils libselinux/getconlist: report failures 2021-02-19 15:15:11 +01:00
LICENSE initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
Makefile libselinux: LABEL_BACKEND_ANDROID add option to enable 2020-11-01 20:47:15 -06:00
VERSION Update VERSIONs to 3.2-rc2 for release. 2021-02-03 11:26:28 +01:00