Home
last modified time | relevance | path

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

/linux-6.6.21/security/keys/
Dprocess_keys.c225 if (new->thread_keyring) in install_thread_keyring_to_cred()
235 new->thread_keyring = keyring; in install_thread_keyring_to_cred()
380 if (new_cred->thread_keyring) { in key_fsuid_changed()
381 down_write(&new_cred->thread_keyring->sem); in key_fsuid_changed()
382 new_cred->thread_keyring->uid = new_cred->fsuid; in key_fsuid_changed()
383 up_write(&new_cred->thread_keyring->sem); in key_fsuid_changed()
393 if (new_cred->thread_keyring) { in key_fsgid_changed()
394 down_write(&new_cred->thread_keyring->sem); in key_fsgid_changed()
395 new_cred->thread_keyring->gid = new_cred->fsgid; in key_fsgid_changed()
396 up_write(&new_cred->thread_keyring->sem); in key_fsgid_changed()
[all …]
Drequest_key.c163 cred->thread_keyring ? cred->thread_keyring->serial : 0); in call_sbin_request_key()
303 dest_keyring = key_get(cred->thread_keyring); in construct_get_dest_keyring()
/linux-6.6.21/kernel/
Dcred.c81 key_put(cred->thread_keyring); in put_cred_rcu()
225 key_get(new->thread_keyring); in prepare_creds()
262 key_put(new->thread_keyring); in prepare_exec_creds()
263 new->thread_keyring = NULL; in prepare_exec_creds()
296 !p->cred->thread_keyring && in copy_creds()
324 if (new->thread_keyring) { in copy_creds()
325 key_put(new->thread_keyring); in copy_creds()
326 new->thread_keyring = NULL; in copy_creds()
652 new->thread_keyring = NULL; in prepare_kernel_cred()
/linux-6.6.21/fs/smb/client/
Dcifs_spnego.c215 cred->thread_keyring = keyring; in init_cifs_spnego()
232 key_revoke(spnego_cred->thread_keyring); in exit_cifs_spnego()
Dcifsacl.c494 cred->thread_keyring = keyring; in init_cifs_idmap()
511 key_revoke(root_cred->thread_keyring); in exit_cifs_idmap()
/linux-6.6.21/net/dns_resolver/
Ddns_key.c368 cred->thread_keyring = keyring; in init_dns_resolver()
384 key_revoke(dns_resolver_cache->thread_keyring); in exit_dns_resolver()
/linux-6.6.21/fs/nfs/
Dnfs4idmap.c229 cred->thread_keyring = keyring; in nfs_idmap_init()
245 key_revoke(id_resolver_cache->thread_keyring); in nfs_idmap_quit()
627 id_resolver_cache->thread_keyring, in nfs_idmap_instantiate()
/linux-6.6.21/include/linux/
Dcred.h131 struct key *thread_keyring; /* keyring private to this thread */ member