syscall.sh / sparc / 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)
number281 (0x119)
abicommon
entry pointsys_add_key
sinceLinux 5.0
man pageadd_key(2)
sourceelixir.bootlin.com

Registers

registervalue
g1281, the syscall number
o0const char *_type
o1const char *_description
o2const void *_payload
o3size_t plen
o4key_serial_t destringid
o0the return value

Then run t 0x10 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/sparc/add_key