Searched refs:authkey (Results 1 – 4 of 4) sorted by relevance
/security/keys/ |
D | request_key_auth.c | 163 struct key *authkey = NULL; in request_key_auth_new() local 212 authkey = key_alloc(&key_type_request_key_auth, desc, in request_key_auth_new() 216 if (IS_ERR(authkey)) { in request_key_auth_new() 217 ret = PTR_ERR(authkey); in request_key_auth_new() 222 ret = key_instantiate_and_link(authkey, rka, 0, NULL, NULL); in request_key_auth_new() 226 kleave(" = {%d,%d}", authkey->serial, refcount_read(&authkey->usage)); in request_key_auth_new() 227 return authkey; in request_key_auth_new() 230 key_put(authkey); in request_key_auth_new() 254 struct key *authkey; in key_get_instantiation_authkey() local 262 authkey = ERR_CAST(authkey_ref); in key_get_instantiation_authkey() [all …]
|
D | request_key.c | 34 void complete_request_key(struct key *authkey, int error) in complete_request_key() argument 36 struct request_key_auth *rka = get_request_key_auth(authkey); in complete_request_key() 39 kenter("%d{%d},%d", authkey->serial, key->serial, error); in complete_request_key() 42 key_negate_and_link(key, key_negative_timeout, NULL, authkey); in complete_request_key() 44 key_revoke(authkey); in complete_request_key() 93 static int call_sbin_request_key(struct key *authkey, void *aux) in call_sbin_request_key() argument 96 struct request_key_auth *rka = get_request_key_auth(authkey); in call_sbin_request_key() 105 kenter("{%d},{%d},%s", key->serial, authkey->serial, rka->op); in call_sbin_request_key() 125 ret = key_link(keyring, authkey); in call_sbin_request_key() 191 complete_request_key(authkey, ret); in call_sbin_request_key() [all …]
|
D | key.c | 426 struct key *authkey, in __key_instantiate_and_link() argument 461 if (authkey) in __key_instantiate_and_link() 462 key_revoke(authkey); in __key_instantiate_and_link() 500 struct key *authkey) in key_instantiate_and_link() argument 532 ret = __key_instantiate_and_link(key, &prep, keyring, authkey, &edit); in key_instantiate_and_link() 571 struct key *authkey) in key_reject_and_link() argument 611 if (authkey) in key_reject_and_link() 612 key_revoke(authkey); in key_reject_and_link()
|
D | keyctl.c | 1388 struct key *authkey; in keyctl_assume_authority() local 1407 authkey = key_get_instantiation_authkey(id); in keyctl_assume_authority() 1408 if (IS_ERR(authkey)) { in keyctl_assume_authority() 1409 ret = PTR_ERR(authkey); in keyctl_assume_authority() 1413 ret = keyctl_change_reqkey_auth(authkey); in keyctl_assume_authority() 1415 ret = authkey->serial; in keyctl_assume_authority() 1416 key_put(authkey); in keyctl_assume_authority()
|