syscall.sh / x64 / keyctl
keyctl
manipulate the kernel's key management facility
sys_keyctl(int cmd, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5)
| number | 250 (0xfa) |
|---|---|
| abi | common |
| entry point | sys_keyctl |
| since | Linux 3.3 |
| man page | keyctl(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 250, the syscall number |
rdi | int cmd |
rsi | unsigned long arg2 |
rdx | unsigned long arg3 |
r10 | unsigned long arg4 |
r8 | unsigned long arg5 |
rax | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x86 288
- arm64 219
- arm 311
- riscv64 219
- x32 1073742074
- loongarch64 219
- ppc64 271
- ppc 271
- s390x 280
- mips64 5241
- mipsn32 6245
- mipso32 4282
- alpha 441
- arc 219
- csky 219
- hexagon 219
- m68k 281
- microblaze 288
- nios2 219
- openrisc 219
- parisc 266
- sh 287
- sparc 283
- sparc64 283
- xtensa 258
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/keyctl