syscall.sh / x86 / 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)
number286 (0x11e)
abii386
entry pointsys_add_key
sinceLinux 3.3
man pageadd_key(2)
sourceelixir.bootlin.com

Registers

registervalue
eax286, the syscall number
ebxconst char *_type
ecxconst char *_description
edxconst void *_payload
esisize_t plen
edikey_serial_t destringid
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

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