Lines Matching refs:description
49 * Extract the description of a new key from userspace and either add it as a
52 * If the description is NULL or an empty string, the key type is asked to
67 char type[32], *description;
81 description = NULL;
83 description = strndup_user(_description, KEY_MAX_DESC_SIZE);
84 if (IS_ERR(description)) {
85 ret = PTR_ERR(description);
88 if (!*description) {
89 kfree(description);
90 description = NULL;
91 } else if ((description[0] == '.') &&
128 key_ref = key_create_or_update(keyring_ref, type, description,
146 kfree(description);
173 char type[32], *description, *callout_info;
181 /* pull the description into kernel space */
182 description = strndup_user(_description, KEY_MAX_DESC_SIZE);
183 if (IS_ERR(description)) {
184 ret = PTR_ERR(description);
219 key = request_key_and_link(ktype, description, callout_info,
243 kfree(description);
549 * Return a description of a key to userspace.
556 * type;uid;gid;perm;description<NUL>
558 * If successful, we return the amount of description available, irrespective
593 desclen = strlen(key->description);
611 copy_to_user(buffer + infolen, key->description,
640 char type[32], *description;
643 /* pull the type and description into kernel space */
648 description = strndup_user(_description, KEY_MAX_DESC_SIZE);
649 if (IS_ERR(description)) {
650 ret = PTR_ERR(description);
680 key_ref = keyring_search(keyring_ref, ktype, description);
712 kfree(description);