Home
last modified time | relevance | path

Searched refs:upayload (Results 1 – 5 of 5) sorted by relevance

/kernel/linux/linux-5.10/security/keys/
Duser_defined.c61 struct user_key_payload *upayload; in user_preparse() local
67 upayload = kmalloc(sizeof(*upayload) + datalen, GFP_KERNEL); in user_preparse()
68 if (!upayload) in user_preparse()
73 prep->payload.data[0] = upayload; in user_preparse()
74 upayload->datalen = datalen; in user_preparse()
75 memcpy(upayload->data, prep->data, datalen); in user_preparse()
130 struct user_key_payload *upayload = user_key_payload_locked(key); in user_revoke() local
135 if (upayload) { in user_revoke()
137 call_rcu(&upayload->rcu, user_free_payload_rcu); in user_revoke()
148 struct user_key_payload *upayload = key->payload.data[0]; in user_destroy() local
[all …]
/kernel/linux/linux-5.10/net/dns_resolver/
Ddns_key.c95 struct user_key_payload *upayload; in dns_resolver_preparse() local
211 upayload = kmalloc(sizeof(*upayload) + result_len + 1, GFP_KERNEL); in dns_resolver_preparse()
212 if (!upayload) { in dns_resolver_preparse()
217 upayload->datalen = result_len; in dns_resolver_preparse()
218 memcpy(upayload->data, data, result_len); in dns_resolver_preparse()
219 upayload->data[result_len] = '\0'; in dns_resolver_preparse()
221 prep->payload.data[dns_key_data] = upayload; in dns_resolver_preparse()
Ddns_query.c80 struct user_key_payload *upayload; in dns_query() local
149 upayload = user_key_payload_locked(rkey); in dns_query()
150 len = upayload->datalen; in dns_query()
154 *_result = kmemdup_nul(upayload->data, len, GFP_KERNEL); in dns_query()
/kernel/linux/linux-5.10/security/keys/encrypted-keys/
Dencrypted.c304 const struct user_key_payload *upayload; in request_user_key() local
312 upayload = user_key_payload_locked(ukey); in request_user_key()
313 if (!upayload) { in request_user_key()
320 *master_key = upayload->data; in request_user_key()
321 *master_keylen = upayload->datalen; in request_user_key()
/kernel/linux/linux-5.10/fs/cifs/
Dconnect.c2896 const struct user_key_payload *upayload; in cifs_set_cifscreds() local
2940 upayload = user_key_payload_locked(key); in cifs_set_cifscreds()
2941 if (IS_ERR_OR_NULL(upayload)) { in cifs_set_cifscreds()
2942 rc = upayload ? PTR_ERR(upayload) : -EINVAL; in cifs_set_cifscreds()
2947 payload = upayload->data; in cifs_set_cifscreds()
2948 delim = strnchr(payload, upayload->datalen, ':'); in cifs_set_cifscreds()
2952 upayload->datalen); in cifs_set_cifscreds()