siginfo: add signal info for seccomp related SIGSYS
commit274f3c84562cbba1d99bab2d085d22d8aa401a4e
authorDaniel Golle <daniel@makrotopia.org>
Sun, 17 May 2015 20:49:23 +0000 (17 22:49 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 20 May 2015 10:26:26 +0000 (20 12:26 +0200)
tree6aa9f78379266a7839343be060ca314b22c93572
parentec0827d3c2af5c9569c04cbb6f57a3c581583722
siginfo: 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>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libc/sysdeps/linux/alpha/bits/siginfo.h
libc/sysdeps/linux/common/bits/siginfo.h
libc/sysdeps/linux/ia64/bits/siginfo.h
libc/sysdeps/linux/mips/bits/siginfo.h
libc/sysdeps/linux/sparc/bits/siginfo.h