syscall_get_arch(9)
π syscall_get_arch(9) π
okay so welcome to the Kernel API Manual page for this absolute little icon, bestie β¨
πΈ NAME πΈ
syscall_get_arch β return the AUDIT_ARCH for the current system call π«Ά
β¨ SYNOPSIS β¨
int syscall_get_arch (struct task_struct *task );
π ARGUMENTS π
taskβ the task of interest, and bestie it must be blocked. no cap, that part matters π
π¦ DESCRIPTION π¦
Okay so this returns the AUDIT_ARCH_* based on the system call convention in use. slay π
It's only valid to call this when task is stopped on entry to a system call, due to SYSCALL_WORK_SYSCALL_TRACE, SYSCALL_WORK_SYSCALL_AUDIT, or SYSCALL_WORK_SECCOMP. like, that is the vibe check, and if it fails, do not pass go π
Architectures which permit CONFIG_HAVE_ARCH_SECCOMP_FILTER must provide an implementation of this. periodt, that's the rule π
π SEE ALSO π
- Kernel file
./include/asm-generic/syscall.h syscall_get_nr(9)syscall_set_nr(9)syscall_rollback(9)syscall_get_error(9)syscall_get_return_value(9)syscall_set_return_value(9)syscall_get_arguments(9)syscall_set_arguments(9)
source/version: ./include/asm-generic Β· date: October 2026 Β· page: syscall_get_arch(9) β mwah, bye bestie πβ¨
π¦ 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