Lines Matching refs:tcp

53 	printstr(tcp, tcp->u_arg[0]);  in SYS_FUNC()
56 printstr(tcp, tcp->u_arg[1]); in SYS_FUNC()
59 printstrn(tcp, tcp->u_arg[2], tcp->u_arg[3]); in SYS_FUNC()
61 tprintf(", %" PRI_klu ", ", tcp->u_arg[3]); in SYS_FUNC()
63 print_keyring_serial_number(tcp->u_arg[4]); in SYS_FUNC()
71 printstr(tcp, tcp->u_arg[0]); in SYS_FUNC()
74 printstr(tcp, tcp->u_arg[1]); in SYS_FUNC()
77 printstr(tcp, tcp->u_arg[2]); in SYS_FUNC()
80 print_keyring_serial_number(tcp->u_arg[3]); in SYS_FUNC()
86 keyctl_get_keyring_id(struct tcb *tcp, key_serial_t id, int create) in keyctl_get_keyring_id() argument
93 keyctl_update_key(struct tcb *tcp, key_serial_t id, kernel_ulong_t addr, in keyctl_update_key() argument
98 printstrn(tcp, addr, len); in keyctl_update_key()
103 keyctl_handle_key_key(struct tcb *tcp, key_serial_t id1, key_serial_t id2) in keyctl_handle_key_key() argument
111 keyctl_read_key(struct tcb *tcp, key_serial_t id, kernel_ulong_t addr, in keyctl_read_key() argument
114 if (entering(tcp)) { in keyctl_read_key()
118 if (syserror(tcp)) in keyctl_read_key()
121 kernel_ulong_t rval = (tcp->u_rval >= 0) && in keyctl_read_key()
122 ((kernel_ulong_t) tcp->u_rval > len) ? len : in keyctl_read_key()
123 (kernel_ulong_t) tcp->u_rval; in keyctl_read_key()
124 printstr_ex(tcp, addr, rval, has_nul ? in keyctl_read_key()
132 keyctl_keyring_search(struct tcb *tcp, key_serial_t id1, kernel_ulong_t addr1, in keyctl_keyring_search() argument
137 printstr(tcp, addr1); in keyctl_keyring_search()
139 printstr(tcp, addr2); in keyctl_keyring_search()
145 keyctl_chown_key(struct tcb *tcp, key_serial_t id, unsigned user, in keyctl_chown_key() argument
154 keyctl_instantiate_key(struct tcb *tcp, key_serial_t id1, kernel_ulong_t addr, in keyctl_instantiate_key() argument
159 printstrn(tcp, addr, len); in keyctl_instantiate_key()
165 keyctl_instantiate_key_iov(struct tcb *tcp, key_serial_t id1, in keyctl_instantiate_key_iov() argument
171 tprint_iov(tcp, len, addr, IOV_DECODE_STR); in keyctl_instantiate_key_iov()
177 keyctl_negate_key(struct tcb *tcp, key_serial_t id1, unsigned timeout, in keyctl_negate_key() argument
186 keyctl_reject_key(struct tcb *tcp, key_serial_t id1, unsigned timeout, in keyctl_reject_key() argument
199 keyctl_set_timeout(struct tcb *tcp, key_serial_t id, unsigned timeout) in keyctl_set_timeout() argument
206 keyctl_get_persistent(struct tcb *tcp, unsigned uid, key_serial_t id) in keyctl_get_persistent() argument
216 keyctl_setperm_key(struct tcb *tcp, key_serial_t id, uint32_t perm) in keyctl_setperm_key() argument
224 print_dh_params(struct tcb *tcp, kernel_ulong_t addr) in print_dh_params() argument
228 if (umove_or_printaddr(tcp, addr, &params)) in print_dh_params()
241 keyctl_dh_compute(struct tcb *tcp, kernel_ulong_t params, kernel_ulong_t buf, in keyctl_dh_compute() argument
244 if (entering(tcp)) { in keyctl_dh_compute()
245 print_dh_params(tcp, params); in keyctl_dh_compute()
250 if (syserror(tcp)) { in keyctl_dh_compute()
253 kernel_ulong_t rval = (tcp->u_rval >= 0) && in keyctl_dh_compute()
254 ((kernel_ulong_t) tcp->u_rval > len) ? len : in keyctl_dh_compute()
255 (kernel_ulong_t) tcp->u_rval; in keyctl_dh_compute()
256 printstrn(tcp, buf, rval); in keyctl_dh_compute()
260 if (fetch_keyctl_kdf_params(tcp, kdf_addr, &kdf)) { in keyctl_dh_compute()
265 PRINT_FIELD_STR("{", kdf, hashname, tcp); in keyctl_dh_compute()
273 kdf.otherinfolen, tcp); in keyctl_dh_compute()
304 keyctl_restrict_keyring(struct tcb *const tcp, in keyctl_restrict_keyring() argument
311 printstr(tcp, addr1); in keyctl_restrict_keyring()
313 printstr(tcp, addr2); in keyctl_restrict_keyring()
321 int cmd = tcp->u_arg[0]; in SYS_FUNC()
322 kernel_ulong_t arg2 = tcp->u_arg[1]; in SYS_FUNC()
323 kernel_ulong_t arg3 = tcp->u_arg[2]; in SYS_FUNC()
324 kernel_ulong_t arg4 = tcp->u_arg[3]; in SYS_FUNC()
325 kernel_ulong_t arg5 = tcp->u_arg[4]; in SYS_FUNC()
327 if (entering(tcp)) { in SYS_FUNC()
340 keyctl_get_keyring_id(tcp, arg2, arg3); in SYS_FUNC()
344 printstr(tcp, arg2); in SYS_FUNC()
348 keyctl_update_key(tcp, arg2, arg3, arg4); in SYS_FUNC()
360 keyctl_handle_key_key(tcp, arg2, arg3); in SYS_FUNC()
366 keyctl_read_key(tcp, arg2, arg3, arg4, cmd != KEYCTL_READ); in SYS_FUNC()
370 keyctl_keyring_search(tcp, arg2, arg3, arg4, arg5); in SYS_FUNC()
374 keyctl_chown_key(tcp, arg2, arg3, arg4); in SYS_FUNC()
378 keyctl_setperm_key(tcp, arg2, arg3); in SYS_FUNC()
382 keyctl_instantiate_key(tcp, arg2, arg3, arg4, arg5); in SYS_FUNC()
386 keyctl_negate_key(tcp, arg2, arg3, arg4); in SYS_FUNC()
395 keyctl_set_timeout(tcp, arg2, arg3); in SYS_FUNC()
402 keyctl_reject_key(tcp, arg2, arg3, arg4, arg5); in SYS_FUNC()
406 keyctl_instantiate_key_iov(tcp, arg2, arg3, arg4, arg5); in SYS_FUNC()
410 keyctl_get_persistent(tcp, arg2, arg3); in SYS_FUNC()
414 keyctl_dh_compute(tcp, arg2, arg3, arg4, arg5); in SYS_FUNC()
418 keyctl_restrict_keyring(tcp, arg2, arg3, arg4); in SYS_FUNC()