uClibc: add signal info for seccomp related SIGSYS
authorJohn Crispin <john@openwrt.org>
Sat, 23 May 2015 15:26:19 +0000 (15:26 +0000)
committerJohn Crispin <john@openwrt.org>
Sat, 23 May 2015 15:26:19 +0000 (15:26 +0000)
commitb1763f3c583df71dbc58314d1a3522a57115963f
treea4fdfb47129efe998590366534db68b90f599b86
parent3a527574882fa2dc354cd2b627c74a88790a4473
uClibc: add signal info for seccomp related SIGSYS

uClibc doesn't define signal info for the SIGSYS signal which is issued
in case of hitting a syscall prohibited by seccomp.
This is sad as it makes debugging seccomp filter policies impossible on
some architectures (at least ARM and PowerPC, maybe also others) which
do not coincidentally set si_value.sival_int as the syscall number.

To fix this, import the definitions and macros needed from glibc.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
SVN-Revision: 45720
toolchain/uClibc/patches-0.9.33.2/995-add-sigsys-to-siginfo_t-union.patch [new file with mode: 0644]