Lines Matching defs:keyring

75  * keyring.
82 struct key *keyring = info->data;
84 return install_session_keyring_to_cred(cred, keyring);
88 * Clean up a usermode helper with session keyring.
92 struct key *keyring = info->data;
93 key_put(keyring);
97 * Call a usermode helper with a specific session keyring.
116 * - execute "/sbin/request-key <op> <key> <uid> <gid> <keyring> <keyring> <keyring>"
124 struct key *key = rka->target_key, *keyring, *session, *user_session;
136 /* allocate a new session keyring */
140 keyring = keyring_alloc(desc, cred->fsuid, cred->fsgid, cred,
144 if (IS_ERR(keyring)) {
145 ret = PTR_ERR(keyring);
149 /* attach the auth key to the session keyring */
150 ret = key_link(keyring, authkey);
196 ret = call_usermodehelper_keys(request_key, argv, envp, keyring,
211 key_put(keyring);
260 * Get the appropriate destination keyring for the request.
262 * The keyring selected is returned with an extra reference upon it which the
274 /* find the appropriate keyring */
281 /* use a default keyring; falling through the cases until we
339 * Require Write permission on the keyring. This is essential
340 * because the default keyring may be the session keyring, and
341 * joining a keyring only requires Search permission.
343 * However, this check is skipped for the "requestor keyring" so
345 * keys to the original requestor's destination keyring.
364 * the requested keyring.
410 * Attach the key to the destination keyring under lock, but we do need
546 * request_key_and_link - Request a key and cache it in a keyring.
563 * keyring if one is provided.
699 * to a keyring if found, new keys are always allocated in the user's quota,
741 * to a keyring if found and new keys are always allocated in the user's quota.