• Home
  • Raw
  • Download

Lines Matching refs:keyring

427 				      struct key *keyring,  in __key_instantiate_and_link()  argument
434 key_check(keyring); in __key_instantiate_and_link()
456 if (keyring) { in __key_instantiate_and_link()
457 if (test_bit(KEY_FLAG_KEEP, &keyring->flags)) in __key_instantiate_and_link()
460 __key_link(keyring, key, _edit); in __key_instantiate_and_link()
499 struct key *keyring, in key_instantiate_and_link() argument
518 if (keyring) { in key_instantiate_and_link()
519 ret = __key_link_lock(keyring, &key->index_key); in key_instantiate_and_link()
523 ret = __key_link_begin(keyring, &key->index_key, &edit); in key_instantiate_and_link()
527 if (keyring->restrict_link && keyring->restrict_link->check) { in key_instantiate_and_link()
528 struct key_restriction *keyres = keyring->restrict_link; in key_instantiate_and_link()
530 ret = keyres->check(keyring, key->type, &prep.payload, in key_instantiate_and_link()
537 ret = __key_instantiate_and_link(key, &prep, keyring, authkey, &edit); in key_instantiate_and_link()
540 if (keyring) in key_instantiate_and_link()
541 __key_link_end(keyring, &key->index_key, edit); in key_instantiate_and_link()
575 struct key *keyring, in key_reject_and_link() argument
582 key_check(keyring); in key_reject_and_link()
587 if (keyring) { in key_reject_and_link()
588 if (keyring->restrict_link) in key_reject_and_link()
591 link_ret = __key_link_lock(keyring, &key->index_key); in key_reject_and_link()
593 link_ret = __key_link_begin(keyring, &key->index_key, &edit); in key_reject_and_link()
595 __key_link_end(keyring, &key->index_key, edit); in key_reject_and_link()
615 if (keyring && link_ret == 0) in key_reject_and_link()
616 __key_link(keyring, key, &edit); in key_reject_and_link()
625 if (keyring && link_ret == 0) in key_reject_and_link()
626 __key_link_end(keyring, &key->index_key, edit); in key_reject_and_link()
825 struct key *keyring, *key = NULL; in key_create_or_update() local
843 keyring = key_ref_to_ptr(keyring_ref); in key_create_or_update()
845 key_check(keyring); in key_create_or_update()
848 restrict_link = keyring->restrict_link; in key_create_or_update()
851 if (keyring->type != &key_type_keyring) in key_create_or_update()
875 ret = __key_link_lock(keyring, &index_key); in key_create_or_update()
881 ret = __key_link_begin(keyring, &index_key, &edit); in key_create_or_update()
888 ret = restrict_link->check(keyring, index_key.type, in key_create_or_update()
936 ret = __key_instantiate_and_link(key, &prep, keyring, NULL, &edit); in key_create_or_update()
943 ima_post_key_create_or_update(keyring, key, payload, plen, in key_create_or_update()
949 __key_link_end(keyring, &index_key, edit); in key_create_or_update()
962 __key_link_end(keyring, &index_key, edit); in key_create_or_update()
977 ima_post_key_create_or_update(keyring, key, in key_create_or_update()