syscall.sh / arm64 / add_key

add_key

add a key to the kernel's key management facility

sys_add_key(const char *_type, const char *_description, const void *_payload, size_t plen, key_serial_t destringid)
number217 (0xd9)
abicommon
entry pointsys_add_key
sinceLinux 3.7
man pageadd_key(2)
sourceelixir.bootlin.com

Registers

registervalue
x8217, the syscall number
x0const char *_type
x1const char *_description
x2const void *_payload
x3size_t plen
x4key_serial_t destringid
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/add_key