Home
last modified time | relevance | path

Searched refs:keyring (Results 1 – 6 of 6) sorted by relevance

/fs/crypto/
Dkeyring.c85 struct fscrypt_keyring *keyring = sb->s_master_keys; in fscrypt_put_master_key_activeref() local
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_KERNEL); in allocate_filesystem_keyring()
192 if (!keyring) in allocate_filesystem_keyring()
194 spin_lock_init(&keyring->lock); in allocate_filesystem_keyring()
200 smp_store_release(&sb->s_master_keys, keyring); in allocate_filesystem_keyring()
219 struct fscrypt_keyring *keyring = sb->s_master_keys; in fscrypt_destroy_keyring() local
222 if (!keyring) in fscrypt_destroy_keyring()
[all …]
DMakefile10 keyring.o \
/fs/cifs/
Dcifs_spnego.c181 struct key *keyring; in init_cifs_spnego() local
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()
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()
223 key_put(keyring); in init_cifs_spnego()
Dcifsacl.c456 struct key *keyring; in init_cifs_idmap() local
472 keyring = keyring_alloc(".cifs_idmap", in init_cifs_idmap()
477 if (IS_ERR(keyring)) { in init_cifs_idmap()
478 ret = PTR_ERR(keyring); in init_cifs_idmap()
488 set_bit(KEY_FLAG_ROOT_CAN_CLEAR, &keyring->flags); in init_cifs_idmap()
489 cred->thread_keyring = keyring; in init_cifs_idmap()
493 cifs_dbg(FYI, "cifs idmap keyring: %d\n", key_serial(keyring)); in init_cifs_idmap()
497 key_put(keyring); in init_cifs_idmap()
/fs/nfs/
Dnfs4idmap.c200 struct key *keyring; in nfs_idmap_init() local
210 keyring = keyring_alloc(".id_resolver", in nfs_idmap_init()
215 if (IS_ERR(keyring)) { in nfs_idmap_init()
216 ret = PTR_ERR(keyring); in nfs_idmap_init()
228 set_bit(KEY_FLAG_ROOT_CAN_CLEAR, &keyring->flags); in nfs_idmap_init()
229 cred->thread_keyring = keyring; in nfs_idmap_init()
237 key_put(keyring); in nfs_idmap_init()
/fs/verity/
DKconfig51 kernel keyring.