/linux-4.4.14/security/keys/ |
D | keyring.c | 171 static unsigned long hash_key_type_and_desc(const struct keyring_index_key *index_key) in hash_key_type_and_desc() argument 175 const char *description = index_key->description; in hash_key_type_and_desc() 179 int n, desc_len = index_key->desc_len; in hash_key_type_and_desc() 181 type = (unsigned long)index_key->type; in hash_key_type_and_desc() 208 if (index_key->type != &key_type_keyring && (hash & fan_mask) == 0) in hash_key_type_and_desc() 210 if (index_key->type == &key_type_keyring && (hash & fan_mask) != 0) in hash_key_type_and_desc() 232 const struct keyring_index_key *index_key = data; in keyring_get_key_chunk() local 235 int desc_len = index_key->desc_len, n = sizeof(chunk); in keyring_get_key_chunk() 240 return hash_key_type_and_desc(index_key); in keyring_get_key_chunk() 242 return ((unsigned long)index_key->type << 8) | desc_len; in keyring_get_key_chunk() [all …]
|
D | persistent.c | 43 struct keyring_index_key *index_key) in key_create_persistent() argument 54 persistent_ref = find_key_to_update(reg_ref, index_key); in key_create_persistent() 59 persistent = keyring_alloc(index_key->description, in key_create_persistent() 78 struct keyring_index_key index_key; in key_get_persistent() local 85 index_key.type = &key_type_keyring; in key_get_persistent() 86 index_key.description = buf; in key_get_persistent() 87 index_key.desc_len = sprintf(buf, "_persistent.%u", from_kuid(ns, uid)); in key_get_persistent() 92 persistent_ref = find_key_to_update(reg_ref, &index_key); in key_get_persistent() 103 persistent_ref = key_create_persistent(ns, uid, &index_key); in key_get_persistent()
|
D | key.c | 279 key->index_key.desc_len = desclen; in key_alloc() 280 key->index_key.description = kmemdup(desc, desclen + 1, GFP_KERNEL); in key_alloc() 281 if (!key->index_key.description) in key_alloc() 287 key->index_key.type = type; in key_alloc() 493 ret = __key_link_begin(keyring, &key->index_key, &edit); in key_instantiate_and_link() 501 __key_link_end(keyring, &key->index_key, edit); in key_instantiate_and_link() 549 link_ret = __key_link_begin(keyring, &key->index_key, &edit); in key_reject_and_link() 582 __key_link_end(keyring, &key->index_key, edit); in key_reject_and_link() 781 struct keyring_index_key index_key = { in key_create_or_update() local 793 index_key.type = key_type_lookup(type); in key_create_or_update() [all …]
|
D | request_key.c | 343 ctx->index_key.type->name, ctx->index_key.description); in construct_alloc_key() 350 if (ctx->index_key.type->read) in construct_alloc_key() 352 if (ctx->index_key.type == &key_type_keyring || in construct_alloc_key() 353 ctx->index_key.type->update) in construct_alloc_key() 356 key = key_alloc(ctx->index_key.type, ctx->index_key.description, in construct_alloc_key() 365 ret = __key_link_begin(dest_keyring, &ctx->index_key, &edit); in construct_alloc_key() 384 __key_link_end(dest_keyring, &ctx->index_key, edit); in construct_alloc_key() 400 __key_link_end(dest_keyring, &ctx->index_key, edit); in construct_alloc_key() 443 if (ctx->index_key.type == &key_type_keyring) in construct_key_and_link() 517 .index_key.type = type, in request_key_and_link() [all …]
|
D | internal.h | 92 const struct keyring_index_key *index_key, 97 const struct keyring_index_key *index_key, 101 const struct keyring_index_key *index_key); 111 struct keyring_index_key index_key; member
|
D | request_key_auth.c | 246 .index_key.type = &key_type_request_key_auth, in key_get_instantiation_authkey() 247 .index_key.description = description, in key_get_instantiation_authkey()
|
D | process_keys.c | 452 ctx->index_key.type != &key_type_request_key_auth in search_process_keyrings() 674 ctx.index_key.type = key->type; in lookup_user_key() 675 ctx.index_key.description = key->description; in lookup_user_key() 676 ctx.index_key.desc_len = strlen(key->description); in lookup_user_key()
|
D | proc.c | 188 .index_key.type = key->type, in proc_keys_show() 189 .index_key.description = key->description, in proc_keys_show()
|
/linux-4.4.14/include/linux/ |
D | assoc_array.h | 36 unsigned long (*get_key_chunk)(const void *index_key, int level); 42 bool (*compare_object)(const void *object, const void *index_key); 47 int (*diff_objects)(const void *object, const void *index_key); 70 const void *index_key); 75 const void *index_key, 81 const void *index_key);
|
D | assoc_array_priv.h | 72 unsigned long index_key[]; member
|
D | key.h | 187 struct keyring_index_key index_key; member
|
/linux-4.4.14/lib/ |
D | assoc_array.c | 184 const void *index_key, in assoc_array_walk() argument 211 segments = ops->get_key_chunk(index_key, level); in assoc_array_walk() 268 segments = ops->get_key_chunk(index_key, sc_level); in assoc_array_walk() 270 sc_segments = shortcut->index_key[sc_level >> ASSOC_ARRAY_KEY_CHUNK_SHIFT]; in assoc_array_walk() 321 const void *index_key) in assoc_array_find() argument 329 if (assoc_array_walk(array, ops, index_key, &result) != in assoc_array_find() 348 if (ops->compare_object(leaf, index_key)) in assoc_array_find() 493 const void *index_key, in assoc_array_insert_into_terminal_node() argument 529 index_key)) { in assoc_array_insert_into_terminal_node() 766 index_key); in assoc_array_insert_into_terminal_node() [all …]
|
/linux-4.4.14/Documentation/ |
D | assoc_array.txt | 141 unsigned long (*get_key_chunk)(const void *index_key, int level); 159 bool (*compare_object)(const void *object, const void *index_key); 167 int (*diff_objects)(const void *object, const void *index_key); 200 const void *index_key, 210 The index_key argument should hold index key information and is 225 const void *index_key); 229 The index_key argument should hold index key information and is 329 const void *index_key);
|