uClibc: add signal info for seccomp related SIGSYS
authorJohn Crispin <blogic@openwrt.org>
Sat, 23 May 2015 15:26:19 +0000 (15:26 +0000)
committerJohn Crispin <blogic@openwrt.org>
Sat, 23 May 2015 15:26:19 +0000 (15:26 +0000)
commit4e7c302ea2b9c89aedf60e0ea380b9cd4a9852bd
treea4fdfb47129efe998590366534db68b90f599b86
parent4a83700ac1a40e0d3ddc4ff2e4daff30d0c72be9
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45720 3c298f89-4303-0410-b956-a3cf2f4a3e73
toolchain/uClibc/patches-0.9.33.2/995-add-sigsys-to-siginfo_t-union.patch [new file with mode: 0644]