Lines Matching defs:keyring

64  * new key to the specified keyring or update a matching key in that keyring.
69 * The keyring must be writable so that we can attach the key to it.
105 (strncmp(type, "keyring", 7) == 0)) {
125 /* find the target keyring (which must be writable) */
133 * keyring */
155 * Search the process keyrings and keyring trees linked from those for a
159 * If a key is found, it will be attached to the destination keyring if there's
203 /* get the destination keyring if specified */
252 * Get the ID of the specified process keyring.
254 * The requested keyring must have search permission to be found.
256 * If successful, the ID of the requested keyring will be returned.
278 * Join a (named) session keyring.
280 * Create and join an anonymous session keyring or join a named session
281 * keyring, creating it if necessary. A named session keyring must have Search
286 * If successful, the ID of the joined session keyring will be returned.
461 * Clear the specified keyring, creating an empty process keyring if one of the
462 * special keyring IDs is used.
464 * The keyring must grant the caller Write permission and not have
470 struct key *keyring;
493 keyring = key_ref_to_ptr(keyring_ref);
494 if (test_bit(KEY_FLAG_KEEP, &keyring->flags))
497 ret = keyring_clear(keyring);
505 * Create a link from a keyring to a key if there's no matching key in the
506 * keyring, otherwise replace the link to the matching key with a link to the
509 * The key must grant the caller Link permission and the keyring must grant
511 * the keyring's quota will be extended.
542 * Unlink a key from a keyring.
544 * The keyring must grant the caller Write permission for this to work; the key
555 struct key *keyring, *key;
570 keyring = key_ref_to_ptr(keyring_ref);
572 if (test_bit(KEY_FLAG_KEEP, &keyring->flags) &&
576 ret = key_unlink(keyring, key);
586 * Move a link to a key from one keyring to another, displacing any matching
587 * key from the destination keyring.
590 * the caller Write permission. There must also be a link in the from keyring
707 * Search the specified keyring and any keyrings it links to for a matching
709 * (this includes the starting keyring). Only keys with Search permission can
712 * If successful, the found key will be linked to the destination keyring if
737 /* get the keyring at which to begin the search */
744 /* get the destination keyring if specified */
773 /* link the resulting key to the destination keyring if we can */
1110 * Get the destination keyring for instantiation and check that the caller has
1125 /* if a specific keyring is nominated by ID, then use that */
1137 /* otherwise specify the destination keyring recorded in the
1166 * destination keyring if one is given.
1222 /* find the destination keyring amongst those belonging to the
1228 /* instantiate the key and link it into a keyring */
1249 * destination keyring if one is given.
1278 * the destination keyring if one is given.
1308 * the key into the destination keyring if one is given.
1328 * code and link the key into the destination keyring if one is given.
1375 /* find the destination keyring if present (which must also be
1381 /* instantiate the key and link it into a keyring */
1399 * Read or set the default keyring in which request_key() will cache keys and
1402 * If a thread or process keyring is specified then it will be created if it
1627 * Attempt to install the calling process's session keyring on the process's
1630 * The keyring must exist and must grant the caller LINK permission, and the
1634 * The keyring will be emplaced on the parent when it next resumes userspace.
1708 /* cancel an already pending keyring replacement */
1711 /* the replacement session keyring is applied just prior to userspace
1731 * Apply a restriction to a given keyring.
1733 * The caller must have Setattr permission to change keyring restrictions.
1736 * to link to the keyring. In this case, _restriction must also be NULL.
1783 * The caller must have View permission to watch a key or keyring.