Searched refs:keyres (Results 1 – 3 of 3) sorted by relevance
398 struct key_restriction *keyres = keyring->restrict_link; in keyring_destroy() local400 key_put(keyres->key); in keyring_destroy()401 kfree(keyres); in keyring_destroy()943 struct key_restriction *keyres = in keyring_restriction_alloc() local946 if (!keyres) in keyring_restriction_alloc()949 keyres->check = check; in keyring_restriction_alloc()951 return keyres; in keyring_restriction_alloc()965 struct key_restriction *keyres) in keyring_detect_restriction_cycle() argument967 while (keyres && keyres->key && in keyring_detect_restriction_cycle()968 keyres->key->type == &key_type_keyring) { in keyring_detect_restriction_cycle()[all …]
522 struct key_restriction *keyres = keyring->restrict_link; in key_instantiate_and_link() local524 ret = keyres->check(keyring, key->type, &prep.payload, in key_instantiate_and_link()525 keyres->key); in key_instantiate_and_link()
461 struct key_restriction *keyres = in asymmetric_restriction_alloc() local464 if (!keyres) in asymmetric_restriction_alloc()467 keyres->check = check; in asymmetric_restriction_alloc()468 keyres->key = key; in asymmetric_restriction_alloc()469 keyres->keytype = &key_type_asymmetric; in asymmetric_restriction_alloc()471 return keyres; in asymmetric_restriction_alloc()