/kernel/linux/linux-5.10/security/keys/ |
H A D | request_key.c | 226 static int construct_key(struct key *key, const void *callout_info, in construct_key() argument 234 kenter("%d,%p,%zu,%p", key->serial, callout_info, callout_len, aux); in construct_key() 237 authkey = request_key_auth_new(key, "create", callout_info, callout_len, in construct_key() 490 const char *callout_info, in construct_key_and_link() 519 ret = construct_key(key, callout_info, callout_len, aux, in construct_key_and_link() 550 * @callout_info: The data to pass to the instantiation upcall (or NULL). 551 * @callout_len: The length of callout_info. 558 * incremented if found. Otherwise, if callout_info is not NULL, a key will be 567 * found; -ENOKEY if no key was found and no @callout_info was given; -EDQUOT 577 const void *callout_info, in request_key_and_link() 489 construct_key_and_link(struct keyring_search_context *ctx, const char *callout_info, size_t callout_len, void *aux, struct key *dest_keyring, unsigned long flags) construct_key_and_link() argument 574 request_key_and_link(struct key_type *type, const char *description, struct key_tag *domain_tag, const void *callout_info, size_t callout_len, void *aux, struct key *dest_keyring, unsigned long flags) request_key_and_link() argument 706 request_key_tag(struct key_type *type, const char *description, struct key_tag *domain_tag, const char *callout_info) request_key_tag() argument 746 request_key_with_auxdata(struct key_type *type, const char *description, struct key_tag *domain_tag, const void *callout_info, size_t callout_len, void *aux) request_key_with_auxdata() argument [all...] |
H A D | request_key_auth.c | 79 * Read the callout_info data (retrieves the callout information). 100 memcpy(buffer, rka->callout_info, buflen); in request_key_auth_read() 114 kfree(rka->callout_info); in free_request_key_auth() 162 const void *callout_info, size_t callout_len, in request_key_auth_new() 177 rka->callout_info = kmemdup(callout_info, callout_len, GFP_KERNEL); in request_key_auth_new() 178 if (!rka->callout_info) in request_key_auth_new() 161 request_key_auth_new(struct key *target, const char *op, const void *callout_info, size_t callout_len, struct key *dest_keyring) request_key_auth_new() argument
|
H A D | keyctl.c | 176 char type[32], *description, *callout_info; in SYSCALL_DEFINE4() local 192 callout_info = NULL; in SYSCALL_DEFINE4() 195 callout_info = strndup_user(_callout_info, PAGE_SIZE); in SYSCALL_DEFINE4() 196 if (IS_ERR(callout_info)) { in SYSCALL_DEFINE4() 197 ret = PTR_ERR(callout_info); in SYSCALL_DEFINE4() 200 callout_len = strlen(callout_info); in SYSCALL_DEFINE4() 222 key = request_key_and_link(ktype, description, NULL, callout_info, in SYSCALL_DEFINE4() 244 kfree(callout_info); in SYSCALL_DEFINE4()
|
H A D | internal.h | 160 const void *callout_info, 217 const void *callout_info,
|
/kernel/linux/linux-6.6/security/keys/ |
H A D | request_key.c | 226 static int construct_key(struct key *key, const void *callout_info, in construct_key() argument 234 kenter("%d,%p,%zu,%p", key->serial, callout_info, callout_len, aux); in construct_key() 237 authkey = request_key_auth_new(key, "create", callout_info, callout_len, in construct_key() 490 const char *callout_info, in construct_key_and_link() 519 ret = construct_key(key, callout_info, callout_len, aux, in construct_key_and_link() 550 * @callout_info: The data to pass to the instantiation upcall (or NULL). 551 * @callout_len: The length of callout_info. 558 * incremented if found. Otherwise, if callout_info is not NULL, a key will be 567 * found; -ENOKEY if no key was found and no @callout_info was given; -EDQUOT 577 const void *callout_info, in request_key_and_link() 489 construct_key_and_link(struct keyring_search_context *ctx, const char *callout_info, size_t callout_len, void *aux, struct key *dest_keyring, unsigned long flags) construct_key_and_link() argument 574 request_key_and_link(struct key_type *type, const char *description, struct key_tag *domain_tag, const void *callout_info, size_t callout_len, void *aux, struct key *dest_keyring, unsigned long flags) request_key_and_link() argument 706 request_key_tag(struct key_type *type, const char *description, struct key_tag *domain_tag, const char *callout_info) request_key_tag() argument 746 request_key_with_auxdata(struct key_type *type, const char *description, struct key_tag *domain_tag, const void *callout_info, size_t callout_len, void *aux) request_key_with_auxdata() argument [all...] |
H A D | request_key_auth.c | 79 * Read the callout_info data (retrieves the callout information). 100 memcpy(buffer, rka->callout_info, buflen); in request_key_auth_read() 114 kfree(rka->callout_info); in free_request_key_auth() 162 const void *callout_info, size_t callout_len, in request_key_auth_new() 177 rka->callout_info = kmemdup(callout_info, callout_len, GFP_KERNEL); in request_key_auth_new() 178 if (!rka->callout_info) in request_key_auth_new() 161 request_key_auth_new(struct key *target, const char *op, const void *callout_info, size_t callout_len, struct key *dest_keyring) request_key_auth_new() argument
|
H A D | keyctl.c | 176 char type[32], *description, *callout_info; in SYSCALL_DEFINE4() local 192 callout_info = NULL; in SYSCALL_DEFINE4() 195 callout_info = strndup_user(_callout_info, PAGE_SIZE); in SYSCALL_DEFINE4() 196 if (IS_ERR(callout_info)) { in SYSCALL_DEFINE4() 197 ret = PTR_ERR(callout_info); in SYSCALL_DEFINE4() 200 callout_len = strlen(callout_info); in SYSCALL_DEFINE4() 222 key = request_key_and_link(ktype, description, NULL, callout_info, in SYSCALL_DEFINE4() 244 kfree(callout_info); in SYSCALL_DEFINE4()
|
H A D | internal.h | 160 const void *callout_info, 215 const void *callout_info,
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | key.h | 319 const char *callout_info); 328 const void *callout_info, 336 * @callout_info: The data to pass to the instantiation upcall (or NULL). 342 const char *callout_info) in request_key() 344 return request_key_tag(type, description, NULL, callout_info); in request_key() 353 * @callout_info: The data to pass to the instantiation upcall (or NULL). 357 * callout_info must be a NUL-terminated string and no auxiliary data can be 363 #define request_key_net(type, description, net, callout_info) \ 364 request_key_tag(type, description, net->key_domain, callout_info); 340 request_key(struct key_type *type, const char *description, const char *callout_info) request_key() argument
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | key.h | 325 const char *callout_info); 334 const void *callout_info, 342 * @callout_info: The data to pass to the instantiation upcall (or NULL). 348 const char *callout_info) in request_key() 350 return request_key_tag(type, description, NULL, callout_info); in request_key() 359 * @callout_info: The data to pass to the instantiation upcall (or NULL). 363 * callout_info must be a NUL-terminated string and no auxiliary data can be 369 #define request_key_net(type, description, net, callout_info) \ 370 request_key_tag(type, description, net->key_domain, callout_info) 346 request_key(struct key_type *type, const char *description, const char *callout_info) request_key() argument
|
/kernel/linux/linux-5.10/include/keys/ |
H A D | dns_resolver-type.h | 16 const char *callout_info,
|
H A D | request_key_auth-type.h | 21 void *callout_info; member
|
/kernel/linux/linux-6.6/include/keys/ |
H A D | dns_resolver-type.h | 16 const char *callout_info,
|
H A D | request_key_auth-type.h | 21 void *callout_info; member
|