siginfo: add signal info for seccomp related SIGSYS

System Internals / uClibc - Daniel Golle [makrotopia.org] - 20 May 2015 05:26 UTC

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.

274f3c8 siginfo: add signal info for seccomp related SIGSYS
libc/sysdeps/linux/alpha/bits/siginfo.h | 11 +++++++++++
libc/sysdeps/linux/common/bits/siginfo.h | 11 +++++++++++
libc/sysdeps/linux/ia64/bits/siginfo.h | 11 +++++++++++
libc/sysdeps/linux/mips/bits/siginfo.h | 11 +++++++++++
libc/sysdeps/linux/sparc/bits/siginfo.h | 11 +++++++++++
5 files changed, 55 insertions(+)

  • Share