force_sig_seccomp(9)
π force_sig_seccomp π
okay so welcome to the Kernel API Manual bestie, this is the page for force_sig_seccomp(9) and it's honestly kinda iconic β it's the thing that lets a task get yeeted with a special signal so in-process syscall emulation can do its thing. let's go π
β¨ SYNOPSIS β¨
int force_sig_seccomp (int syscall , int reason , bool force_coredump );
like literally that's the whole signature, no notes π
πΈ ARGUMENTS πΈ
syscallβ the syscall number you're sending on up to userland π«Άreasonβ the filter-supplied reason code that gets sent to userland (it rides along viasi_errno) β¨force_coredumpβtrueif you want to trigger a coredump,falseif not. choose wisely bestie π
π« DESCRIPTION π«
okay so short version: this bad boy forces a SIGSYS with a code of SYS_SECCOMP, plus the related sigsys info attached. that's it. that's the whole vibe. no cap π₯
so when a seccomp filter decides "nah, we're handling this syscall ourselves in userspace," this is the mechanism that signals the task so in-process syscall emulation can actually happen. main character energy honestly π
π¦ SEE ALSO π¦
the kernel file ./kernel/signal.c and like, a whole friend group of (9) friends β go say hi:
task_set_jobctl_pending(9)task_clear_jobctl_trapping(9)task_clear_jobctl_pending(9)task_participate_group_stop(9)ptrace_trap_notify(9)do_notify_parent_cldstop(9)do_signal_stop(9)do_jobctl_trap(9)do_freezer_trap(9)signal_delivered(9)sys_restart_syscall(9)set_current_blocked(9)sys_rt_sigprocmask(9)sys_rt_sigpending(9)copy_siginfo_to_external32(9)do_sigtimedwait(9)sys_rt_sigtimedwait(9)sys_kill(9)sys_pidfd_send_signal(9)sys_tgkill(9)sys_tkill(9)sys_rt_sigqueueinfo(9)sys_sigpending(9)sys_sigprocmask(9)sys_rt_sigaction(9)sys_rt_sigsuspend(9)
π that's the whole page bestie, no missing bits, iykyk
sign-off szn: this came from the ./kernel source, October 2026 version, filed under force_sig_seccomp(9) in the Kernel API Manual. mwah π stay signal-safe out there, love u, bye ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms