Lines Matching refs:keyring
135 static struct key *search_fscrypt_keyring(struct key *keyring, in search_fscrypt_keyring() argument
143 key_ref_t keyref = make_key_ref(keyring, true /* possessed */); in search_fscrypt_keyring()
203 struct key *keyring; in allocate_filesystem_keyring() local
209 keyring = keyring_alloc(description, GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, in allocate_filesystem_keyring()
213 if (IS_ERR(keyring)) in allocate_filesystem_keyring()
214 return PTR_ERR(keyring); in allocate_filesystem_keyring()
221 smp_store_release(&sb->s_master_keys, keyring); in allocate_filesystem_keyring()
238 struct key *keyring; in fscrypt_find_master_key() local
247 keyring = smp_load_acquire(&sb->s_master_keys); in fscrypt_find_master_key()
248 if (keyring == NULL) in fscrypt_find_master_key()
252 return search_fscrypt_keyring(keyring, &key_type_fscrypt, description); in fscrypt_find_master_key()
258 struct key *keyring; in allocate_master_key_users_keyring() local
262 keyring = keyring_alloc(description, GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, in allocate_master_key_users_keyring()
266 if (IS_ERR(keyring)) in allocate_master_key_users_keyring()
267 return PTR_ERR(keyring); in allocate_master_key_users_keyring()
269 mk->mk_users = keyring; in allocate_master_key_users_keyring()
336 struct key *keyring) in add_new_master_key() argument
378 err = key_instantiate_and_link(key, mk, sizeof(*mk), keyring, NULL); in add_new_master_key()