/linux/security/keys/ |
A D | keyring.c | 217 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() 1110 index_key); in find_key_to_update() 1216 .index_key = A->index_key, in keyring_detect_cycle() [all …]
|
A D | persistent.c | 41 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 D | key.c | 285 key->index_key.type = type; in key_alloc() 838 if (IS_ERR(index_key.type)) { in key_create_or_update() 845 (!index_key.description && !index_key.type->preparse)) in key_create_or_update() 871 if (!index_key.description) in key_create_or_update() 874 if (!index_key.description) in key_create_or_update() 877 index_key.desc_len = strlen(index_key.description); in key_create_or_update() 913 if (index_key.type->update) { 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() [all …]
|
A D | request_key.c | 379 ctx->index_key.type->name, ctx->index_key.description); in construct_alloc_key() 386 if (ctx->index_key.type->read) in construct_alloc_key() 389 ctx->index_key.type->update) in construct_alloc_key() 392 key = key_alloc(ctx->index_key.type, ctx->index_key.description, in construct_alloc_key() 568 .index_key.type = type, in request_key_and_link() 569 .index_key.domain_tag = domain_tag, in request_key_and_link() 570 .index_key.description = description, in request_key_and_link() 585 ctx.index_key.type->name, ctx.index_key.description, in request_key_and_link() 771 .index_key.type = type, in request_key_rcu() 772 .index_key.domain_tag = domain_tag, in request_key_rcu() [all …]
|
A D | internal.h | 91 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); 120 struct keyring_index_key index_key; member
|
A D | request_key_auth.c | 250 .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 D | process_keys.c | 192 .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 D | proc.c | 166 .index_key = key->index_key, in proc_keys_show()
|
/linux/include/linux/ |
A D | assoc_array.h | 32 unsigned long (*get_key_chunk)(const void *index_key, int level); 38 bool (*compare_object)(const void *object, const void *index_key); 43 int (*diff_objects)(const void *object, const void *index_key); 66 const void *index_key); 71 const void *index_key, 77 const void *index_key);
|
A D | fscache.h | 325 const void *index_key, in fscache_acquire_cookie() argument 335 index_key, index_key_len, in fscache_acquire_cookie()
|
A D | assoc_array_priv.h | 68 unsigned long index_key[]; member
|
A D | key.h | 240 struct keyring_index_key index_key; member
|
/linux/net/rxrpc/ |
A D | conn_service.c | 50 if (conn->proto.index_key < k.index_key) in rxrpc_find_service_conn_rcu() 52 else if (conn->proto.index_key > k.index_key) in rxrpc_find_service_conn_rcu() 85 if (cursor->proto.index_key < k.index_key) in rxrpc_publish_service_conn() 87 else if (cursor->proto.index_key > k.index_key) in rxrpc_publish_service_conn()
|
A D | ar-internal.h | 349 u64 index_key; member
|
/linux/Documentation/translations/zh_CN/core-api/ |
A D | assoc_array.rst | 119 unsigned long (*get_key_chunk)(const void *index_key, int level); 135 bool (*compare_object)(const void *object, const void *index_key); 142 int (*diff_objects)(const void *object, const void *index_key); 172 const void *index_key, 180 ``index_key`` 参数应持有索引键信息,并在调用OPP表中的方法时传递给它们。 193 const void *index_key); 197 ``index_key`` 参数应持有索引键信息,并在调用OPP表中的方法时传递给它们。 276 const void *index_key);
|
/linux/lib/ |
A D | assoc_array.c | 172 const void *index_key, in assoc_array_walk() argument 306 const void *index_key) in assoc_array_find() argument 476 const void *index_key, in assoc_array_insert_into_terminal_node() argument 512 index_key)) { in assoc_array_insert_into_terminal_node() 732 index_key); in assoc_array_insert_into_terminal_node() 763 new_s0->index_key[i] = in assoc_array_insert_into_terminal_node() 865 memcpy(new_s0->index_key, shortcut->index_key, in assoc_array_insert_mid_shortcut() 914 memcpy(new_s1->index_key, shortcut->index_key, in assoc_array_insert_mid_shortcut() 965 const void *index_key, in assoc_array_insert() argument 1080 const void *index_key) in assoc_array_delete() argument [all …]
|
/linux/fs/fscache/ |
A D | cookie.c | 88 const void *index_key, size_t index_key_len) in fscache_set_key() argument 104 memcpy(buf, index_key, index_key_len); in fscache_set_key() 141 const void *index_key, size_t index_key_len, in fscache_alloc_cookie() argument 156 if (fscache_set_key(cookie, index_key, index_key_len) < 0) in fscache_alloc_cookie() 260 const void *index_key, size_t index_key_len, in __fscache_acquire_cookie() argument 274 if (!index_key || !index_key_len || index_key_len > 255 || aux_data_len > 255) in __fscache_acquire_cookie() 297 index_key, index_key_len, in __fscache_acquire_cookie()
|
/linux/Documentation/core-api/ |
A D | assoc_array.rst | 124 unsigned long (*get_key_chunk)(const void *index_key, int level); 142 bool (*compare_object)(const void *object, const void *index_key); 150 int (*diff_objects)(const void *object, const void *index_key); 182 const void *index_key, 192 The ``index_key`` argument should hold index key information and is 207 const void *index_key); 211 The ``index_key`` argument should hold index key information and is 311 const void *index_key);
|
/linux/Documentation/filesystems/caching/ |
A D | netfs-api.rst | 298 const void *index_key, 310 index_key and is of length index_key_len.
|