seccomp on riscv64
operate on Secure Computing state of the process
sys_seccomp(unsigned int op, unsigned int flags, void *uargs)
| number | 277 (0x115) |
|---|---|
| abi | common |
| kconfig | CONFIG_SECCOMP |
| entry point | sys_seccomp |
| since | Linux 4.15 or earlier (4.15 is the first release scanned for riscv64) |
| man page | seccomp(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 277, the syscall number |
a0 | unsigned int op |
a1 | unsigned int flags |
a2 | void *uargs |
a0 | the return value |
Then run ecall to enter the kernel.
Same syscall on other architectures
- x64 317
- x86 354
- arm64 277
- arm 383
- ia32 354
- x32 1073742141
- loongarch64 277
- ppc64 358
- ppc 358
- s390x 348
- mips64 5312
- mipsn32 6316
- mipso32 4352
- alpha 514
- arc 277
- blackfin 388, removed in 4.17
- cris 355, removed in 4.17
- csky 277
- hexagon 277
- ia64 1353, removed in 6.7
- m68k 380
- metag 277, removed in 4.17
- microblaze 384
- nds32 277, removed in 5.18
- nios2 277
- openrisc 277
- parisc 338
- score 277, removed in 4.17
- sh 372
- sparc 346
- sparc64 346
- tilegx 277, removed in 4.17
- tilepro 277, removed in 4.17
- xtensa 337
Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/seccomp