$RodHat_/search
signal reference

SIGSYS

Bad system call.

Linux number
31
FreeBSD number
12
Default action
Terminate and dump core
Catch, block or ignore
Allowed
Standard
POSIX.1-2001

On Linux this is the seccomp signal: a filter returning SECCOMP_RET_TRAP delivers it to a handler, and the SECCOMP_RET_KILL actions terminate the process as though it had been killed by it. A sandboxed program that dies with "Bad system call" tried a syscall your filter does not allow. On OpenBSD, pledge(2) violations kill with SIGABRT instead.

Related syscalls

  • seccomp(2)Linux · Sandboxing

    Set the thread's seccomp state: strict mode or a BPF filter on every syscall.

  • pledge(2)OpenBSD · Sandboxing

    Restrict the process to named groups of system operations; violations kill it with SIGABRT.

Sources

  1. signal(7), Linux man-pages
  2. signal(3), FreeBSD manual

Numbers are Linux on x86 and arm64; alpha, mips, sparc and parisc number some signals differently. Spot one that's wrong? Tell Rod.