Home
last modified time | relevance | path

Searched refs:keyres (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/security/keys/
Dkeyring.c425 struct key_restriction *keyres = keyring->restrict_link; in keyring_destroy() local
427 key_put(keyres->key); in keyring_destroy()
428 kfree(keyres); in keyring_destroy()
976 struct key_restriction *keyres = in keyring_restriction_alloc() local
979 if (!keyres) in keyring_restriction_alloc()
982 keyres->check = check; in keyring_restriction_alloc()
984 return keyres; in keyring_restriction_alloc()
998 struct key_restriction *keyres) in keyring_detect_restriction_cycle() argument
1000 while (keyres && keyres->key && in keyring_detect_restriction_cycle()
1001 keyres->key->type == &key_type_keyring) { in keyring_detect_restriction_cycle()
[all …]
Dkey.c527 struct key_restriction *keyres = keyring->restrict_link; in key_instantiate_and_link() local
529 ret = keyres->check(keyring, key->type, &prep.payload, in key_instantiate_and_link()
530 keyres->key); in key_instantiate_and_link()
/Linux-v5.10/crypto/asymmetric_keys/
Dasymmetric_type.c458 struct key_restriction *keyres = in asymmetric_restriction_alloc() local
461 if (!keyres) in asymmetric_restriction_alloc()
464 keyres->check = check; in asymmetric_restriction_alloc()
465 keyres->key = key; in asymmetric_restriction_alloc()
466 keyres->keytype = &key_type_asymmetric; in asymmetric_restriction_alloc()
468 return keyres; in asymmetric_restriction_alloc()