Home
last modified time | relevance | path

Searched refs:authkey (Results 1 – 4 of 4) sorted by relevance

/security/keys/
Drequest_key_auth.c167 struct key *authkey = NULL; in request_key_auth_new() local
216 authkey = key_alloc(&key_type_request_key_auth, desc, in request_key_auth_new()
220 if (IS_ERR(authkey)) { in request_key_auth_new()
221 ret = PTR_ERR(authkey); in request_key_auth_new()
226 ret = key_instantiate_and_link(authkey, rka, 0, NULL, NULL); in request_key_auth_new()
230 kleave(" = {%d,%d}", authkey->serial, refcount_read(&authkey->usage)); in request_key_auth_new()
231 return authkey; in request_key_auth_new()
234 key_put(authkey); in request_key_auth_new()
259 struct key *authkey; in key_get_instantiation_authkey() local
269 authkey = ERR_CAST(authkey_ref); in key_get_instantiation_authkey()
[all …]
Drequest_key.c59 void complete_request_key(struct key *authkey, int error) in complete_request_key() argument
61 struct request_key_auth *rka = get_request_key_auth(authkey); in complete_request_key()
64 kenter("%d{%d},%d", authkey->serial, key->serial, error); in complete_request_key()
67 key_negate_and_link(key, key_negative_timeout, NULL, authkey); in complete_request_key()
69 key_revoke(authkey); in complete_request_key()
118 static int call_sbin_request_key(struct key *authkey, void *aux) in call_sbin_request_key() argument
121 struct request_key_auth *rka = get_request_key_auth(authkey); in call_sbin_request_key()
130 kenter("{%d},{%d},%s", key->serial, authkey->serial, rka->op); in call_sbin_request_key()
150 ret = key_link(keyring, authkey); in call_sbin_request_key()
216 complete_request_key(authkey, ret); in call_sbin_request_key()
[all …]
Dkey.c428 struct key *authkey, in __key_instantiate_and_link() argument
464 if (authkey) in __key_instantiate_and_link()
465 key_invalidate(authkey); in __key_instantiate_and_link()
500 struct key *authkey) in key_instantiate_and_link() argument
537 ret = __key_instantiate_and_link(key, &prep, keyring, authkey, &edit); in key_instantiate_and_link()
576 struct key *authkey) in key_reject_and_link() argument
619 if (authkey) in key_reject_and_link()
620 key_invalidate(authkey); in key_reject_and_link()
Dkeyctl.c1518 struct key *authkey; in keyctl_assume_authority() local
1537 authkey = key_get_instantiation_authkey(id); in keyctl_assume_authority()
1538 if (IS_ERR(authkey)) { in keyctl_assume_authority()
1539 ret = PTR_ERR(authkey); in keyctl_assume_authority()
1543 ret = keyctl_change_reqkey_auth(authkey); in keyctl_assume_authority()
1545 ret = authkey->serial; in keyctl_assume_authority()
1546 key_put(authkey); in keyctl_assume_authority()