Home
last modified time | relevance | path

Searched refs:keyring_key (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/fs/ubifs/
Dauth.c257 struct key *keyring_key; in ubifs_init_authentication() local
278 keyring_key = request_key(&key_type_logon, c->auth_key_name, NULL); in ubifs_init_authentication()
280 if (IS_ERR(keyring_key)) { in ubifs_init_authentication()
282 PTR_ERR(keyring_key)); in ubifs_init_authentication()
283 return PTR_ERR(keyring_key); in ubifs_init_authentication()
286 down_read(&keyring_key->sem); in ubifs_init_authentication()
288 if (keyring_key->type != &key_type_logon) { in ubifs_init_authentication()
294 ukp = user_key_payload_locked(keyring_key); in ubifs_init_authentication()
353 up_read(&keyring_key->sem); in ubifs_init_authentication()
354 key_put(keyring_key); in ubifs_init_authentication()
/linux-6.12.1/fs/bcachefs/
Dchecksum.c526 struct key *keyring_key; in __bch2_request_key() local
530 keyring_key = request_key(&key_type_user, key_description, NULL); in __bch2_request_key()
531 if (IS_ERR(keyring_key)) in __bch2_request_key()
532 return PTR_ERR(keyring_key); in __bch2_request_key()
534 down_read(&keyring_key->sem); in __bch2_request_key()
535 ukp = dereference_key_locked(keyring_key); in __bch2_request_key()
542 up_read(&keyring_key->sem); in __bch2_request_key()
543 key_put(keyring_key); in __bch2_request_key()