/kernel/linux/linux-5.10/security/keys/ |
H A D | keyring.c | 17 #include <keys/keyring-type.h> 70 * The keyring key type definition. Keyrings are simply keys of this type and 76 static int keyring_instantiate(struct key *keyring, 78 static void keyring_revoke(struct key *keyring); 79 static void keyring_destroy(struct key *keyring); 80 static void keyring_describe(const struct key *keyring, struct seq_file *m); 81 static long keyring_read(const struct key *keyring, 85 .name = "keyring", 104 * Publish the name of a keyring so that it can be found by name (if it has 107 static void keyring_publish_name(struct key *keyring) in keyring_publish_name() argument 140 keyring_instantiate(struct key *keyring, struct key_preparsed_payload *prep) keyring_instantiate() argument 412 keyring_destroy(struct key *keyring) keyring_destroy() argument 437 keyring_describe(const struct key *keyring, struct seq_file *m) keyring_describe() argument 481 keyring_read(const struct key *keyring, char __user *buffer, size_t buflen) keyring_read() argument 523 struct key *keyring; keyring_alloc() local 554 restrict_link_reject(struct key *keyring, const struct key_type *type, const union key_payload *payload, struct key *restriction_key) restrict_link_reject() argument 646 search_keyring(struct key *keyring, struct keyring_search_context *ctx) search_keyring() argument 663 search_nested_keyrings(struct key *keyring, struct keyring_search_context *ctx) search_nested_keyrings() argument 667 struct key *keyring; search_nested_keyrings() member 902 struct key *keyring; keyring_search_rcu() local 937 keyring_search(key_ref_t keyring, struct key_type *type, const char *description, bool recurse) keyring_search() argument 1024 struct key *keyring; keyring_restrict() local 1101 struct key *keyring, *key; find_key_to_update() local 1144 struct key *keyring; find_keyring_by_name() local 1292 __key_link_begin(struct key *keyring, const struct keyring_index_key *index_key, struct assoc_array_edit **_edit) __key_link_begin() argument 1350 __key_link_check_live_key(struct key *keyring, struct key *key) __key_link_check_live_key() argument 1367 __key_link(struct key *keyring, struct key *key, struct assoc_array_edit **_edit) __key_link() argument 1407 __key_link_check_restriction(struct key *keyring, struct key *key) __key_link_check_restriction() argument 1435 key_link(struct key *keyring, struct key *key) key_link() argument 1484 __key_unlink_begin(struct key *keyring, struct key *key, struct assoc_array_edit **_edit) __key_unlink_begin() argument 1506 __key_unlink(struct key *keyring, struct key *key, struct assoc_array_edit **_edit) __key_unlink() argument 1545 key_unlink(struct key *keyring, struct key *key) key_unlink() argument 1647 keyring_clear(struct key *keyring) keyring_clear() argument 1678 keyring_revoke(struct key *keyring) keyring_revoke() argument 1716 keyring_gc(struct key *keyring, time64_t limit) keyring_gc() argument 1761 keyring_restriction_gc(struct key *keyring, struct key_type *dead_type) keyring_restriction_gc() argument [all...] |
H A D | process_keys.c | 22 /* Session keyring create vs join semaphore */ 36 * Get or create a user register keyring. 47 /* Make sure there's a register keyring. It gets owned by the in get_user_register() 66 /* We don't return a ref since the keyring is pinned by the user_ns */ in get_user_register() 97 /* Get the user keyring. Note that there may be one in existence in look_up_user_keyrings() 122 /* Get a default session keyring (which might also exist already) */ in look_up_user_keyrings() 138 /* We install a link from the user session keyring to in look_up_user_keyrings() 139 * the user keyring. in look_up_user_keyrings() 145 /* And only then link the user-session keyring to the in look_up_user_keyrings() 182 * Get the user session keyring i 223 struct key *keyring; install_thread_keyring_to_cred() local 270 struct key *keyring; install_process_keyring_to_cred() local 317 install_session_keyring_to_cred(struct cred *cred, struct key *keyring) install_session_keyring_to_cred() argument 356 install_session_keyring(struct key *keyring) install_session_keyring() argument 840 struct key *keyring; join_session_keyring() local [all...] |
H A D | key.c | 208 * keyring is destroyed, so it must be dynamically allocated. 420 * Instantiate a key and link it into the target keyring atomically. Must be 421 * called with the target keyring's semaphore writelocked. The target key's 427 struct key *keyring, in __key_instantiate_and_link() 434 key_check(keyring); in __key_instantiate_and_link() 455 /* and link it into the destination keyring */ in __key_instantiate_and_link() 456 if (keyring) { in __key_instantiate_and_link() 457 if (test_bit(KEY_FLAG_KEEP, &keyring->flags)) in __key_instantiate_and_link() 460 __key_link(keyring, key, _edit); in __key_instantiate_and_link() 482 * key_instantiate_and_link - Instantiate a key and link it into the keyring 425 __key_instantiate_and_link(struct key *key, struct key_preparsed_payload *prep, struct key *keyring, struct key *authkey, struct assoc_array_edit **_edit) __key_instantiate_and_link() argument 497 key_instantiate_and_link(struct key *key, const void *data, size_t datalen, struct key *keyring, struct key *authkey) key_instantiate_and_link() argument 572 key_reject_and_link(struct key *key, unsigned timeout, unsigned error, struct key *keyring, struct key *authkey) key_reject_and_link() argument 825 struct key *keyring, *key = NULL; key_create_or_update() local [all...] |
H A D | internal.h | 82 #define KEYQUOTA_LINK_BYTES 4 /* a link in a keyring is worth 4 bytes */ 95 extern int __key_link_lock(struct key *keyring, 99 extern int __key_link_begin(struct key *keyring, 102 extern int __key_link_check_live_key(struct key *keyring, struct key *key); 103 extern void __key_link(struct key *keyring, struct key *key, 105 extern void __key_link_end(struct key *keyring, 112 extern struct key *keyring_search_instkey(struct key *keyring, 115 extern int iterate_over_keyring(const struct key *keyring, 176 extern void keyring_gc(struct key *keyring, time64_t limit); 177 extern void keyring_restriction_gc(struct key *keyring, [all...] |
/kernel/linux/linux-6.6/security/keys/ |
H A D | keyring.c | 17 #include <keys/keyring-type.h> 70 * The keyring key type definition. Keyrings are simply keys of this type and 76 static int keyring_instantiate(struct key *keyring, 78 static void keyring_revoke(struct key *keyring); 79 static void keyring_destroy(struct key *keyring); 80 static void keyring_describe(const struct key *keyring, struct seq_file *m); 81 static long keyring_read(const struct key *keyring, 85 .name = "keyring", 104 * Publish the name of a keyring so that it can be found by name (if it has 107 static void keyring_publish_name(struct key *keyring) in keyring_publish_name() argument 140 keyring_instantiate(struct key *keyring, struct key_preparsed_payload *prep) keyring_instantiate() argument 412 keyring_destroy(struct key *keyring) keyring_destroy() argument 437 keyring_describe(const struct key *keyring, struct seq_file *m) keyring_describe() argument 481 keyring_read(const struct key *keyring, char *buffer, size_t buflen) keyring_read() argument 523 struct key *keyring; keyring_alloc() local 554 restrict_link_reject(struct key *keyring, const struct key_type *type, const union key_payload *payload, struct key *restriction_key) restrict_link_reject() argument 646 search_keyring(struct key *keyring, struct keyring_search_context *ctx) search_keyring() argument 663 search_nested_keyrings(struct key *keyring, struct keyring_search_context *ctx) search_nested_keyrings() argument 667 struct key *keyring; search_nested_keyrings() member 902 struct key *keyring; keyring_search_rcu() local 937 keyring_search(key_ref_t keyring, struct key_type *type, const char *description, bool recurse) keyring_search() argument 1024 struct key *keyring; keyring_restrict() local 1101 struct key *keyring, *key; find_key_to_update() local 1144 struct key *keyring; find_keyring_by_name() local 1292 __key_link_begin(struct key *keyring, const struct keyring_index_key *index_key, struct assoc_array_edit **_edit) __key_link_begin() argument 1350 __key_link_check_live_key(struct key *keyring, struct key *key) __key_link_check_live_key() argument 1367 __key_link(struct key *keyring, struct key *key, struct assoc_array_edit **_edit) __key_link() argument 1407 __key_link_check_restriction(struct key *keyring, struct key *key) __key_link_check_restriction() argument 1435 key_link(struct key *keyring, struct key *key) key_link() argument 1484 __key_unlink_begin(struct key *keyring, struct key *key, struct assoc_array_edit **_edit) __key_unlink_begin() argument 1506 __key_unlink(struct key *keyring, struct key *key, struct assoc_array_edit **_edit) __key_unlink() argument 1545 key_unlink(struct key *keyring, struct key *key) key_unlink() argument 1647 keyring_clear(struct key *keyring) keyring_clear() argument 1678 keyring_revoke(struct key *keyring) keyring_revoke() argument 1716 keyring_gc(struct key *keyring, time64_t limit) keyring_gc() argument 1761 keyring_restriction_gc(struct key *keyring, struct key_type *dead_type) keyring_restriction_gc() argument [all...] |
H A D | process_keys.c | 22 /* Session keyring create vs join semaphore */ 36 * Get or create a user register keyring. 47 /* Make sure there's a register keyring. It gets owned by the in get_user_register() 66 /* We don't return a ref since the keyring is pinned by the user_ns */ in get_user_register() 97 /* Get the user keyring. Note that there may be one in existence in look_up_user_keyrings() 122 /* Get a default session keyring (which might also exist already) */ in look_up_user_keyrings() 138 /* We install a link from the user session keyring to in look_up_user_keyrings() 139 * the user keyring. in look_up_user_keyrings() 145 /* And only then link the user-session keyring to the in look_up_user_keyrings() 182 * Get the user session keyring i 223 struct key *keyring; install_thread_keyring_to_cred() local 270 struct key *keyring; install_process_keyring_to_cred() local 317 install_session_keyring_to_cred(struct cred *cred, struct key *keyring) install_session_keyring_to_cred() argument 356 install_session_keyring(struct key *keyring) install_session_keyring() argument 841 struct key *keyring; join_session_keyring() local [all...] |
H A D | key.c | 208 * keyring is destroyed, so it must be dynamically allocated. 420 * Instantiate a key and link it into the target keyring atomically. Must be 421 * called with the target keyring's semaphore writelocked. The target key's 427 struct key *keyring, in __key_instantiate_and_link() 434 key_check(keyring); in __key_instantiate_and_link() 455 /* and link it into the destination keyring */ in __key_instantiate_and_link() 456 if (keyring) { in __key_instantiate_and_link() 457 if (test_bit(KEY_FLAG_KEEP, &keyring->flags)) in __key_instantiate_and_link() 460 __key_link(keyring, key, _edit); in __key_instantiate_and_link() 481 * key_instantiate_and_link - Instantiate a key and link it into the keyring 425 __key_instantiate_and_link(struct key *key, struct key_preparsed_payload *prep, struct key *keyring, struct key *authkey, struct assoc_array_edit **_edit) __key_instantiate_and_link() argument 496 key_instantiate_and_link(struct key *key, const void *data, size_t datalen, struct key *keyring, struct key *authkey) key_instantiate_and_link() argument 572 key_reject_and_link(struct key *key, unsigned timeout, unsigned error, struct key *keyring, struct key *authkey) key_reject_and_link() argument 805 struct key *keyring, *key = NULL; __key_create_or_update() local [all...] |
H A D | internal.h | 82 #define KEYQUOTA_LINK_BYTES 4 /* a link in a keyring is worth 4 bytes */ 95 extern int __key_link_lock(struct key *keyring, 99 extern int __key_link_begin(struct key *keyring, 102 extern int __key_link_check_live_key(struct key *keyring, struct key *key); 103 extern void __key_link(struct key *keyring, struct key *key, 105 extern void __key_link_end(struct key *keyring, 112 extern struct key *keyring_search_instkey(struct key *keyring, 115 extern int iterate_over_keyring(const struct key *keyring, 174 extern void keyring_gc(struct key *keyring, time64_t limit); 175 extern void keyring_restriction_gc(struct key *keyring, [all...] |
/kernel/linux/linux-6.6/security/integrity/ |
H A D | digsig.c | 22 static struct key *keyring[INTEGRITY_KEYRING_MAX]; variable 47 if (!keyring[id]) { in integrity_keyring_from_id() 48 keyring[id] = in integrity_keyring_from_id() 50 if (IS_ERR(keyring[id])) { in integrity_keyring_from_id() 51 int err = PTR_ERR(keyring[id]); in integrity_keyring_from_id() 52 pr_err("no %s keyring: %d\n", keyring_name[id], err); in integrity_keyring_from_id() 53 keyring[id] = NULL; in integrity_keyring_from_id() 58 return keyring[id]; in integrity_keyring_from_id() 64 struct key *keyring; in integrity_digsig_verify() local 69 keyring in integrity_digsig_verify() 89 struct key *keyring; integrity_modsig_verify() local [all...] |
H A D | digsig_asymmetric.c | 22 static struct key *request_asymmetric_key(struct key *keyring, uint32_t keyid) in request_asymmetric_key() argument 43 if (keyring) { in request_asymmetric_key() 44 /* search in specific keyring */ in request_asymmetric_key() 47 kref = keyring_search(make_key_ref(keyring, 1), in request_asymmetric_key() 58 if (keyring) in request_asymmetric_key() 59 pr_err_ratelimited("Request for unknown key '%s' in '%s' keyring. err %ld\n", in request_asymmetric_key() 60 name, keyring->description, in request_asymmetric_key() 82 int asymmetric_verify(struct key *keyring, const char *sig, in asymmetric_verify() argument 102 key = request_asymmetric_key(keyring, be32_to_cpu(hdr->keyid)); in asymmetric_verify()
|
/kernel/linux/linux-5.10/security/integrity/ |
H A D | digsig.c | 22 static struct key *keyring[INTEGRITY_KEYRING_MAX]; variable 46 if (!keyring[id]) { in integrity_keyring_from_id() 47 keyring[id] = in integrity_keyring_from_id() 49 if (IS_ERR(keyring[id])) { in integrity_keyring_from_id() 50 int err = PTR_ERR(keyring[id]); in integrity_keyring_from_id() 51 pr_err("no %s keyring: %d\n", keyring_name[id], err); in integrity_keyring_from_id() 52 keyring[id] = NULL; in integrity_keyring_from_id() 57 return keyring[id]; in integrity_keyring_from_id() 63 struct key *keyring; in integrity_digsig_verify() local 68 keyring in integrity_digsig_verify() 87 struct key *keyring; integrity_modsig_verify() local [all...] |
H A D | digsig_asymmetric.c | 22 static struct key *request_asymmetric_key(struct key *keyring, uint32_t keyid) in request_asymmetric_key() argument 43 if (keyring) { in request_asymmetric_key() 44 /* search in specific keyring */ in request_asymmetric_key() 47 kref = keyring_search(make_key_ref(keyring, 1), in request_asymmetric_key() 58 if (keyring) in request_asymmetric_key() 59 pr_err_ratelimited("Request for unknown key '%s' in '%s' keyring. err %ld\n", in request_asymmetric_key() 60 name, keyring->description, in request_asymmetric_key() 82 int asymmetric_verify(struct key *keyring, const char *sig, in asymmetric_verify() argument 101 key = request_asymmetric_key(keyring, be32_to_cpu(hdr->keyid)); in asymmetric_verify()
|
/kernel/linux/linux-6.6/include/keys/ |
H A D | system_keyring.h | 2 /* System keyring containing trusted public keys. 22 extern int restrict_link_by_builtin_trusted(struct key *keyring, 30 extern __init int load_module_cert(struct key *keyring); 36 static inline __init int load_module_cert(struct key *keyring) in load_module_cert() argument 45 struct key *keyring, 49 int restrict_link_by_digsig_builtin_and_secondary(struct key *keyring, 68 extern void __init set_machine_trusted_keys(struct key *keyring); 71 static inline void __init set_machine_trusted_keys(struct key *keyring) in set_machine_trusted_keys() argument 126 extern void __init set_platform_trusted_keys(struct key *keyring); 128 static inline void set_platform_trusted_keys(struct key *keyring) in set_platform_trusted_keys() argument [all...] |
/kernel/linux/linux-6.6/crypto/asymmetric_keys/ |
H A D | selftest.c | 23 * be loaded into a temporary keyring for the duration of the testing. 181 struct key *keyring; in fips_signature_selftest() local 186 keyring = keyring_alloc(".certs_selftest", in fips_signature_selftest() 193 if (IS_ERR(keyring)) in fips_signature_selftest() 194 panic("Can't allocate certs selftest keyring: %ld\n", in fips_signature_selftest() 195 PTR_ERR(keyring)); in fips_signature_selftest() 198 sizeof(certs_selftest_keys) - 1, keyring); in fips_signature_selftest() 200 panic("Can't allocate certs selftest keyring: %d\n", ret); in fips_signature_selftest() 216 ret = pkcs7_validate_trust(pkcs7, keyring); in fips_signature_selftest() 223 key_put(keyring); in fips_signature_selftest() [all...] |
/kernel/linux/linux-5.10/fs/crypto/ |
H A D | keyring.c | 3 * Filesystem-level keyring for fscrypt 10 * filesystem-level keyring, including the ioctls: 74 * that concurrent keyring lookups can no longer find it. in fscrypt_put_master_key() 85 struct fscrypt_keyring *keyring = sb->s_master_keys; in fscrypt_put_master_key_activeref() local 92 * fscrypt_master_key struct by removing it from the keyring and in fscrypt_put_master_key_activeref() 96 spin_lock(&keyring->lock); in fscrypt_put_master_key_activeref() 98 spin_unlock(&keyring->lock); in fscrypt_put_master_key_activeref() 186 struct fscrypt_keyring *keyring; in allocate_filesystem_keyring() local 191 keyring = kzalloc(sizeof(*keyring), GFP_KERNE in allocate_filesystem_keyring() 219 struct fscrypt_keyring *keyring = sb->s_master_keys; fscrypt_destroy_keyring() local 251 fscrypt_mk_hash_bucket(struct fscrypt_keyring *keyring, const struct fscrypt_key_specifier *mk_spec) fscrypt_mk_hash_bucket() argument 275 struct fscrypt_keyring *keyring; fscrypt_find_master_key() local 324 struct key *keyring; allocate_master_key_users_keyring() local 416 struct fscrypt_keyring *keyring = sb->s_master_keys; add_new_master_key() local [all...] |
/kernel/linux/linux-5.10/fs/cifs/ |
H A D | cifs_spnego.c | 193 struct key *keyring; in init_cifs_spnego() local 200 * Create an override credential set with special thread keyring for in init_cifs_spnego() 208 keyring = keyring_alloc(".cifs_spnego", in init_cifs_spnego() 213 if (IS_ERR(keyring)) { in init_cifs_spnego() 214 ret = PTR_ERR(keyring); in init_cifs_spnego() 223 * instruct request_key() to use this special keyring as a cache for in init_cifs_spnego() 226 set_bit(KEY_FLAG_ROOT_CAN_CLEAR, &keyring->flags); in init_cifs_spnego() 227 cred->thread_keyring = keyring; in init_cifs_spnego() 231 cifs_dbg(FYI, "cifs spnego keyring: %d\n", key_serial(keyring)); in init_cifs_spnego() [all...] |
/kernel/linux/linux-6.6/fs/smb/client/ |
H A D | cifs_spnego.c | 181 struct key *keyring; in init_cifs_spnego() local 188 * Create an override credential set with special thread keyring for in init_cifs_spnego() 196 keyring = keyring_alloc(".cifs_spnego", in init_cifs_spnego() 201 if (IS_ERR(keyring)) { in init_cifs_spnego() 202 ret = PTR_ERR(keyring); in init_cifs_spnego() 211 * instruct request_key() to use this special keyring as a cache for in init_cifs_spnego() 214 set_bit(KEY_FLAG_ROOT_CAN_CLEAR, &keyring->flags); in init_cifs_spnego() 215 cred->thread_keyring = keyring; in init_cifs_spnego() 219 cifs_dbg(FYI, "cifs spnego keyring: %d\n", key_serial(keyring)); in init_cifs_spnego() [all...] |
/kernel/linux/linux-5.10/security/integrity/ima/ |
H A D | ima_asymmetric_keys.c | 17 * @keyring: keyring to which the key is linked to 27 void ima_post_key_create_or_update(struct key *keyring, struct key *key, in ima_post_key_create_or_update() argument 41 queued = ima_queue_key(keyring, payload, payload_len); in ima_post_key_create_or_update() 47 * keyring->description points to the name of the keyring in ima_post_key_create_or_update() 51 * The name of the keyring is passed in the "eventname" in ima_post_key_create_or_update() 56 * The name of the keyring is also passed in the "keyring" in ima_post_key_create_or_update() 59 * to the given keyring in ima_post_key_create_or_update() [all...] |
H A D | ima_queue_keys.c | 66 static struct ima_key_entry *ima_alloc_key_entry(struct key *keyring, in ima_alloc_key_entry() argument 77 entry->keyring_name = kstrdup(keyring->description, in ima_alloc_key_entry() 93 keyring->description, in ima_alloc_key_entry() 103 bool ima_queue_key(struct key *keyring, const void *payload, in ima_queue_key() argument 109 entry = ima_alloc_key_entry(keyring, payload, payload_len); in ima_queue_key()
|
/kernel/linux/linux-6.6/fs/crypto/ |
H A D | keyring.c | 3 * Filesystem-level keyring for fscrypt 10 * filesystem-level keyring, including the ioctls: 74 * that concurrent keyring lookups can no longer find it. in fscrypt_put_master_key() 91 * fscrypt_master_key struct by removing it from the keyring and in fscrypt_put_master_key_activeref() 190 struct fscrypt_keyring *keyring; in allocate_filesystem_keyring() local 195 keyring = kzalloc(sizeof(*keyring), GFP_KERNEL); in allocate_filesystem_keyring() 196 if (!keyring) in allocate_filesystem_keyring() 198 spin_lock_init(&keyring->lock); in allocate_filesystem_keyring() 204 smp_store_release(&sb->s_master_keys, keyring); in allocate_filesystem_keyring() 220 struct fscrypt_keyring *keyring = sb->s_master_keys; fscrypt_destroy_keyring() local 252 fscrypt_mk_hash_bucket(struct fscrypt_keyring *keyring, const struct fscrypt_key_specifier *mk_spec) fscrypt_mk_hash_bucket() argument 276 struct fscrypt_keyring *keyring; fscrypt_find_master_key() local 325 struct key *keyring; allocate_master_key_users_keyring() local 417 struct fscrypt_keyring *keyring = sb->s_master_keys; add_new_master_key() local [all...] |
/kernel/linux/linux-6.6/security/integrity/ima/ |
H A D | ima_asymmetric_keys.c | 19 * @keyring: keyring to which the key is linked to 29 void ima_post_key_create_or_update(struct key *keyring, struct key *key, in ima_post_key_create_or_update() argument 43 queued = ima_queue_key(keyring, payload, payload_len); in ima_post_key_create_or_update() 49 * keyring->description points to the name of the keyring in ima_post_key_create_or_update() 53 * The name of the keyring is passed in the "eventname" in ima_post_key_create_or_update() 58 * The name of the keyring is also passed in the "keyring" in ima_post_key_create_or_update() 61 * to the given keyring in ima_post_key_create_or_update() [all...] |
H A D | ima_queue_keys.c | 67 static struct ima_key_entry *ima_alloc_key_entry(struct key *keyring, in ima_alloc_key_entry() argument 78 entry->keyring_name = kstrdup(keyring->description, in ima_alloc_key_entry() 94 keyring->description, in ima_alloc_key_entry() 104 bool ima_queue_key(struct key *keyring, const void *payload, in ima_queue_key() argument 110 entry = ima_alloc_key_entry(keyring, payload, payload_len); in ima_queue_key()
|
/kernel/linux/linux-5.10/include/keys/ |
H A D | system_keyring.h | 2 /* System keyring containing trusted public keys. 15 extern int restrict_link_by_builtin_trusted(struct key *keyring, 26 struct key *keyring, 83 extern void __init set_platform_trusted_keys(struct key *keyring); 85 static inline void set_platform_trusted_keys(struct key *keyring) in set_platform_trusted_keys() argument
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | key.h | 41 #define KEY_POS_READ 0x02000000 /* possessor can read key payload / view keyring */ 42 #define KEY_POS_WRITE 0x04000000 /* possessor can update key payload / add link to keyring */ 43 #define KEY_POS_SEARCH 0x08000000 /* possessor can find a key in search / search a keyring */ 44 #define KEY_POS_LINK 0x10000000 /* possessor can create a link to a key/keyring */ 82 KEY_NEED_SEARCH, /* Require permission to search (keyring) or find (key) */ 189 * authentication token / access credential / keyring 212 time64_t last_used_at; /* last time used for LRU keyring discard */ 238 #define KEY_FLAG_UID_KEYRING 9 /* set if key is a user or user session keyring */ 269 /* This is set on a keyring to restrict the addition of a link to a key 271 * keyring i [all...] |
/kernel/linux/linux-5.10/net/dns_resolver/ |
H A D | dns_key.c | 338 struct key *keyring; in init_dns_resolver() local 341 /* create an override credential set with a special thread keyring in in init_dns_resolver() 351 keyring = keyring_alloc(".dns_resolver", in init_dns_resolver() 356 if (IS_ERR(keyring)) { in init_dns_resolver() 357 ret = PTR_ERR(keyring); in init_dns_resolver() 365 /* instruct request_key() to use this special keyring as a cache for in init_dns_resolver() 367 set_bit(KEY_FLAG_ROOT_CAN_CLEAR, &keyring->flags); in init_dns_resolver() 368 cred->thread_keyring = keyring; in init_dns_resolver() 372 kdebug("DNS resolver keyring: %d\n", key_serial(keyring)); in init_dns_resolver() [all...] |