Home
last modified time | relevance | path

Searched refs:index_key (Results 1 – 8 of 8) sorted by relevance

/security/keys/
A Dkeyring.c217 size_t n = min_t(size_t, index_key->desc_len, sizeof(index_key->desc)); in key_set_index_key()
219 memcpy(index_key->desc, index_key->description, n); in key_set_index_key()
280 return index_key->x; in keyring_get_key_chunk()
290 d = index_key->description + sizeof(index_key->desc); in keyring_get_key_chunk()
314 return key->index_key.type == index_key->type && in keyring_compare_object()
315 key->index_key.domain_tag == index_key->domain_tag && in keyring_compare_object()
316 key->index_key.desc_len == index_key->desc_len && in keyring_compare_object()
317 memcmp(key->index_key.description, index_key->description, in keyring_compare_object()
1113 index_key); in find_key_to_update()
1219 .index_key = A->index_key, in keyring_detect_cycle()
[all …]
A Dpersistent.c41 struct keyring_index_key *index_key) in key_create_persistent() argument
52 persistent_ref = find_key_to_update(reg_ref, index_key); in key_create_persistent()
57 persistent = keyring_alloc(index_key->description, in key_create_persistent()
76 struct keyring_index_key index_key; in key_get_persistent() local
83 memset(&index_key, 0, sizeof(index_key)); in key_get_persistent()
84 index_key.type = &key_type_keyring; in key_get_persistent()
85 index_key.description = buf; in key_get_persistent()
86 index_key.desc_len = sprintf(buf, "_persistent.%u", from_kuid(ns, uid)); in key_get_persistent()
87 key_set_index_key(&index_key); in key_get_persistent()
92 persistent_ref = find_key_to_update(reg_ref, &index_key); in key_get_persistent()
[all …]
A Dkey.c285 key->index_key.type = type; in key_alloc()
829 if (IS_ERR(index_key.type)) { in __key_create_or_update()
836 (!index_key.description && !index_key.type->preparse)) in __key_create_or_update()
862 if (!index_key.description) in __key_create_or_update()
865 if (!index_key.description) in __key_create_or_update()
868 index_key.desc_len = strlen(index_key.description); in __key_create_or_update()
924 if (index_key.type->read) in __key_create_or_update()
928 index_key.type->update) in __key_create_or_update()
933 key = key_alloc(index_key.type, index_key.description, in __key_create_or_update()
956 if (index_key.type->preparse) in __key_create_or_update()
[all …]
A Drequest_key.c382 ctx->index_key.type->name, ctx->index_key.description); in construct_alloc_key()
389 if (ctx->index_key.type->read) in construct_alloc_key()
392 ctx->index_key.type->update) in construct_alloc_key()
395 key = key_alloc(ctx->index_key.type, ctx->index_key.description, in construct_alloc_key()
584 .index_key.type = type, in request_key_and_link()
585 .index_key.domain_tag = domain_tag, in request_key_and_link()
586 .index_key.description = description, in request_key_and_link()
601 ctx.index_key.type->name, ctx.index_key.description, in request_key_and_link()
787 .index_key.type = type, in request_key_rcu()
788 .index_key.domain_tag = domain_tag, in request_key_rcu()
[all …]
A Dinternal.h91 extern void key_set_index_key(struct keyring_index_key *index_key);
96 const struct keyring_index_key *index_key);
98 const struct keyring_index_key *index_key);
100 const struct keyring_index_key *index_key,
106 const struct keyring_index_key *index_key,
110 const struct keyring_index_key *index_key);
113 struct keyring_index_key index_key; member
A Drequest_key_auth.c250 .index_key.type = &key_type_request_key_auth, in key_get_instantiation_authkey()
251 .index_key.description = description, in key_get_instantiation_authkey()
262 ctx.index_key.desc_len = sprintf(description, "%x", target_id); in key_get_instantiation_authkey()
A Dprocess_keys.c192 .index_key.type = &key_type_keyring, in get_user_session_keyring_rcu()
193 .index_key.description = buf, in get_user_session_keyring_rcu()
204 ctx.index_key.desc_len = snprintf(buf, sizeof(buf), "_uid_ses.%u", in get_user_session_keyring_rcu()
555 ctx->index_key.type != &key_type_request_key_auth in search_process_keyrings_rcu()
758 ctx.index_key = key->index_key; in lookup_user_key()
A Dproc.c166 .index_key = key->index_key, in proc_keys_show()

Completed in 21 milliseconds