merge setuid variants
[trinity.git] / syscalls / add_key.c
blob65bd9f4b7b190a3ff6ed3d93faf654dce4241b07
1 /*
2 * SYSCALL_DEFINE5(add_key, const char __user *, _type,
3 const char __user *, _description,
4 const void __user *, _payload,
5 size_t, plen,
6 key_serial_t, ringid)
8 * On success add_key() returns the serial number of the key it created or updated.
9 * On error, the value -1 will be returned and errno will have been set to an appropriate error.
11 #include "sanitise.h"
13 struct syscallentry syscall_add_key = {
14 .name = "add_key",
15 .num_args = 5,
16 .arg1name = "_type",
17 .arg1type = ARG_ADDRESS,
18 .arg2name = "_description",
19 .arg2type = ARG_ADDRESS,
20 .arg3name = "_payload",
21 .arg3type = ARG_ADDRESS,
22 .arg4name = "plen",
23 .arg4type = ARG_LEN,
24 .arg5name = "ringid",
25 .rettype = RET_KEY_SERIAL_T,