Home
last modified time | relevance | path

Searched refs:callout_info (Results 1 - 14 of 14) sorted by relevance

/kernel/linux/linux-5.10/security/keys/
H A Drequest_key.c226 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 Drequest_key_auth.c79 * 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 Dkeyctl.c176 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 Dinternal.h160 const void *callout_info,
217 const void *callout_info,
/kernel/linux/linux-6.6/security/keys/
H A Drequest_key.c226 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 Drequest_key_auth.c79 * 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 Dkeyctl.c176 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 Dinternal.h160 const void *callout_info,
215 const void *callout_info,
/kernel/linux/linux-5.10/include/linux/
H A Dkey.h319 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 Dkey.h325 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 Ddns_resolver-type.h16 const char *callout_info,
H A Drequest_key_auth-type.h21 void *callout_info; member
/kernel/linux/linux-6.6/include/keys/
H A Ddns_resolver-type.h16 const char *callout_info,
H A Drequest_key_auth-type.h21 void *callout_info; member

Completed in 12 milliseconds