seccomp on riscv64

operate on Secure Computing state of the process

sys_seccomp(unsigned int op, unsigned int flags, void *uargs)
number277 (0x115)
abicommon
kconfigCONFIG_SECCOMP
entry pointsys_seccomp
sinceLinux 4.15 or earlier (4.15 is the first release scanned for riscv64)
man pageseccomp(2)
sourceelixir.bootlin.com

Registers

registervalue
a7277, the syscall number
a0unsigned int op
a1unsigned int flags
a2void *uargs
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/seccomp