Lines Matching defs:description
63 * Extract the description of a new key from userspace and either add it as a
66 * If the description is NULL or an empty string, the key type is asked to
81 char type[32], *description;
94 description = NULL;
96 description = strndup_user(_description, KEY_MAX_DESC_SIZE);
97 if (IS_ERR(description)) {
98 ret = PTR_ERR(description);
101 if (!*description) {
102 kfree(description);
103 description = NULL;
104 } else if ((description[0] == '.') &&
134 key_ref = key_create_or_update(keyring_ref, type, description,
149 kfree(description);
176 char type[32], *description, *callout_info;
184 /* pull the description into kernel space */
185 description = strndup_user(_description, KEY_MAX_DESC_SIZE);
186 if (IS_ERR(description)) {
187 ret = PTR_ERR(description);
222 key = request_key_and_link(ktype, description, NULL, callout_info,
246 kfree(description);
632 * Return a description of a key to userspace.
639 * type;uid;gid;perm;description<NUL>
641 * If successful, we return the amount of description available, irrespective
676 desclen = strlen(key->description);
694 copy_to_user(buffer + infolen, key->description,
723 char type[32], *description;
726 /* pull the type and description into kernel space */
731 description = strndup_user(_description, KEY_MAX_DESC_SIZE);
732 if (IS_ERR(description)) {
733 ret = PTR_ERR(description);
763 key_ref = keyring_search(keyring_ref, ktype, description, true);
795 kfree(description);