keyctl on arm64

manipulate the kernel's key management facility

sys_keyctl(int cmd, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5)
number219 (0xdb)
abicommon
kconfigCONFIG_KEYS
familykeys see the whole family on arm64
entry pointsys_keyctl
sinceLinux 3.7 or earlier (3.7 is the first release scanned for arm64)
man pagekeyctl(2)
sourceelixir.bootlin.com

Registers

registervalue
x8219, the syscall number
x0int cmd
x1unsigned long arg2
x2unsigned long arg3
x3unsigned long arg4
x4unsigned long arg5
x0the return value

Then run svc #0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/arm64/keyctl