syscall_get_arch(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 🌈


source/version: ./include/asm-generic Β· date: October 2026 Β· page: syscall_get_arch(9) β€” mwah, bye bestie πŸ’‹βœ¨

πŸ“¦ where this page comes from