Home
last modified time | relevance | path

Searched refs:dest_keyring (Results 1 – 14 of 14) sorted by relevance

/linux/security/keys/
H A Drequest_key.c228 struct key *dest_keyring) in construct_key() argument
238 dest_keyring); in construct_key()
269 struct key *dest_keyring = *_dest_keyring, *authkey; in construct_get_dest_keyring() local
272 kenter("%p", dest_keyring); in construct_get_dest_keyring()
275 if (dest_keyring) { in construct_get_dest_keyring()
277 key_get(dest_keyring); in construct_get_dest_keyring()
292 dest_keyring = in construct_get_dest_keyring()
293 key_get(rka->dest_keyring); in construct_get_dest_keyring()
295 if (dest_keyring) { in construct_get_dest_keyring()
303 dest_keyring in construct_get_dest_keyring()
370 construct_alloc_key(struct keyring_search_context * ctx,struct key * dest_keyring,unsigned long flags,struct key_user * user,struct key ** _key) construct_alloc_key() argument
493 construct_key_and_link(struct keyring_search_context * ctx,const char * callout_info,size_t callout_len,void * aux,struct key * dest_keyring,unsigned long flags) construct_key_and_link() argument
580 request_key_and_link(struct key_type * type,const char * description,struct key_tag * domain_tag,const void * callout_info,size_t callout_len,void * aux,struct key * dest_keyring,unsigned long flags) request_key_and_link() argument
[all...]
H A Drequest_key_auth.c112 key_put(rka->dest_keyring); in free_request_key_auth()
191 struct key *dest_keyring) in request_key_auth_new()
240 rka->dest_keyring = key_get(dest_keyring); in request_key_auth_new()
163 request_key_auth_new(struct key * target,const char * op,const void * callout_info,size_t callout_len,struct key * dest_keyring) request_key_auth_new() argument
H A Dkeyctl.c1140 *_dest_keyring = key_get(rka->dest_keyring); in get_instantiation_keyring()
1179 struct key *instkey, *dest_keyring; in keyctl_instantiate_key_common() local
1224 ret = get_instantiation_keyring(ringid, rka, &dest_keyring); in keyctl_instantiate_key_common()
1230 dest_keyring, instkey); in keyctl_instantiate_key_common()
1232 key_put(dest_keyring); in keyctl_instantiate_key_common()
1346 struct key *instkey, *dest_keyring; in keyctl_reject_key()
1377 ret = get_instantiation_keyring(ringid, rka, &dest_keyring); in keyctl_reject_key()
1383 dest_keyring, instkey); in keyctl_reject_key()
1385 key_put(dest_keyring);
1340 struct key *instkey, *dest_keyring; keyctl_reject_key() local
H A Dinternal.h156 struct key *dest_keyring,
210 struct key *dest_keyring);
H A Dkeyring.c1000 static bool keyring_detect_restriction_cycle(const struct key *dest_keyring, in keyring_detect_restriction_cycle() argument
1005 if (keyres->key == dest_keyring) in keyring_detect_restriction_cycle()
H A Dprocess_keys.c735 key = rka->dest_keyring; in lookup_user_key()
/linux/crypto/asymmetric_keys/
H A Drestrict.c73 int restrict_link_by_signature(struct key *dest_keyring, in restrict_link_by_signature() argument
109 !strcmp(dest_keyring->description, ".secondary_trusted_keys") && in restrict_link_by_signature()
133 int restrict_link_by_ca(struct key *dest_keyring, in restrict_link_by_ca() argument
174 int restrict_link_by_digsig(struct key *dest_keyring, in restrict_link_by_digsig() argument
198 return restrict_link_by_signature(dest_keyring, type, payload, in restrict_link_by_digsig()
209 static int key_or_keyring_common(struct key *dest_keyring, in key_or_keyring_common() argument
220 if (!dest_keyring) in key_or_keyring_common()
222 else if (dest_keyring->type != &key_type_keyring) in key_or_keyring_common()
295 key = find_asymmetric_key(dest_keyring, sig->auth_ids[0], in key_or_keyring_common()
331 int restrict_link_by_key_or_keyring(struct key *dest_keyring, in restrict_link_by_key_or_keyring() argument
[all …]
/linux/certs/
H A Dsystem_keyring.c45 int restrict_link_by_builtin_trusted(struct key *dest_keyring, in restrict_link_by_builtin_trusted() argument
50 return restrict_link_by_signature(dest_keyring, type, payload, in restrict_link_by_builtin_trusted()
65 int restrict_link_by_digsig_builtin(struct key *dest_keyring, in restrict_link_by_digsig_builtin() argument
70 return restrict_link_by_digsig(dest_keyring, type, payload, in restrict_link_by_digsig_builtin()
88 struct key *dest_keyring, in restrict_link_by_builtin_and_secondary_trusted() argument
97 dest_keyring == secondary_trusted_keys && in restrict_link_by_builtin_and_secondary_trusted()
102 return restrict_link_by_signature(dest_keyring, type, payload, in restrict_link_by_builtin_and_secondary_trusted()
117 int restrict_link_by_digsig_builtin_and_secondary(struct key *dest_keyring, in restrict_link_by_digsig_builtin_and_secondary() argument
126 dest_keyring == secondary_trusted_keys && in restrict_link_by_digsig_builtin_and_secondary()
131 return restrict_link_by_digsig(dest_keyring, type, payload, in restrict_link_by_digsig_builtin_and_secondary()
[all …]
H A Dblacklist.c302 static int restrict_link_for_blacklist(struct key *dest_keyring, in restrict_link_for_blacklist() argument
/linux/include/keys/
H A Dsystem_keyring.h26 int restrict_link_by_digsig_builtin(struct key *dest_keyring,
64 struct key *dest_keyring,
H A Drequest_key_auth-type.h21 struct key *dest_keyring;
19 struct key *dest_keyring; global() member
/linux/include/linux/
H A Dkey.h171 typedef int (*key_restrict_link_func_t)(struct key *dest_keyring,
/linux/Documentation/security/keys/
H A Drequest-key.rst43 key_serial_t dest_keyring);
H A Dcore.rst425 key_serial_t dest_keyring);
621 key_serial_t dest_keyring);