Home
last modified time | relevance | path

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

/Linux-v6.6/security/keys/
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 = key_get(cred->thread_keyring); in construct_get_dest_keyring()
[all …]
Drequest_key_auth.c111 key_put(rka->dest_keyring); in free_request_key_auth()
163 struct key *dest_keyring) in request_key_auth_new() argument
211 rka->dest_keyring = key_get(dest_keyring); in request_key_auth_new()
Dkeyctl.c1139 *_dest_keyring = key_get(rka->dest_keyring); in get_instantiation_keyring()
1178 struct key *instkey, *dest_keyring; in keyctl_instantiate_key_common() local
1219 ret = get_instantiation_keyring(ringid, rka, &dest_keyring); in keyctl_instantiate_key_common()
1225 dest_keyring, instkey); in keyctl_instantiate_key_common()
1227 key_put(dest_keyring); in keyctl_instantiate_key_common()
1340 struct key *instkey, *dest_keyring; in keyctl_reject_key() local
1367 ret = get_instantiation_keyring(ringid, rka, &dest_keyring); in keyctl_reject_key()
1373 dest_keyring, instkey); in keyctl_reject_key()
1375 key_put(dest_keyring); in keyctl_reject_key()
Dinternal.h163 struct key *dest_keyring,
216 struct key *dest_keyring);
Dkeyring.c997 static bool keyring_detect_restriction_cycle(const struct key *dest_keyring, in keyring_detect_restriction_cycle() argument
1002 if (keyres->key == dest_keyring) in keyring_detect_restriction_cycle()
Dprocess_keys.c735 key = rka->dest_keyring; in lookup_user_key()
/Linux-v6.6/certs/
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 …]
Dblacklist.c301 static int restrict_link_for_blacklist(struct key *dest_keyring, in restrict_link_for_blacklist() argument
/Linux-v6.6/crypto/asymmetric_keys/
Drestrict.c70 int restrict_link_by_signature(struct key *dest_keyring, in restrict_link_by_signature() argument
126 int restrict_link_by_ca(struct key *dest_keyring, in restrict_link_by_ca() argument
167 int restrict_link_by_digsig(struct key *dest_keyring, in restrict_link_by_digsig() argument
191 return restrict_link_by_signature(dest_keyring, type, payload, in restrict_link_by_digsig()
202 static int key_or_keyring_common(struct key *dest_keyring, in key_or_keyring_common() argument
213 if (!dest_keyring) in key_or_keyring_common()
215 else if (dest_keyring->type != &key_type_keyring) in key_or_keyring_common()
288 key = find_asymmetric_key(dest_keyring, sig->auth_ids[0], in key_or_keyring_common()
324 int restrict_link_by_key_or_keyring(struct key *dest_keyring, in restrict_link_by_key_or_keyring() argument
329 return key_or_keyring_common(dest_keyring, type, payload, trusted, in restrict_link_by_key_or_keyring()
[all …]
/Linux-v6.6/include/crypto/
Dpublic_key.h61 extern int restrict_link_by_signature(struct key *dest_keyring,
66 extern int restrict_link_by_key_or_keyring(struct key *dest_keyring,
77 extern int restrict_link_by_ca(struct key *dest_keyring,
81 int restrict_link_by_digsig(struct key *dest_keyring,
86 static inline int restrict_link_by_ca(struct key *dest_keyring, in restrict_link_by_ca() argument
94 static inline int restrict_link_by_digsig(struct key *dest_keyring, in restrict_link_by_digsig() argument
/Linux-v6.6/include/keys/
Dsystem_keyring.h26 int restrict_link_by_digsig_builtin(struct key *dest_keyring,
64 struct key *dest_keyring,
Drequest_key_auth-type.h19 struct key *dest_keyring; member
/Linux-v6.6/include/linux/
Dkey.h171 typedef int (*key_restrict_link_func_t)(struct key *dest_keyring,
/Linux-v6.6/Documentation/security/keys/
Drequest-key.rst43 key_serial_t dest_keyring);
Dcore.rst425 key_serial_t dest_keyring);
621 key_serial_t dest_keyring);