Lines Matching refs:type
43 static int key_get_type_from_user(char *type, in key_get_type_from_user() argument
49 ret = strncpy_from_user(type, _type, len); in key_get_type_from_user()
54 if (type[0] == '.') in key_get_type_from_user()
56 type[len - 1] = '\0'; in key_get_type_from_user()
79 char type[32], *description; in SYSCALL_DEFINE5() local
88 ret = key_get_type_from_user(type, _type, sizeof(type)); in SYSCALL_DEFINE5()
103 (strncmp(type, "keyring", 7) == 0)) { in SYSCALL_DEFINE5()
132 key_ref = key_create_or_update(keyring_ref, type, description, in SYSCALL_DEFINE5()
177 char type[32], *description, *callout_info; in SYSCALL_DEFINE4() local
181 ret = key_get_type_from_user(type, _type, sizeof(type)); in SYSCALL_DEFINE4()
216 ktype = key_type_lookup(type); in SYSCALL_DEFINE4()
682 key->type->name, in keyctl_describe_key()
723 char type[32], *description; in keyctl_keyring_search() local
727 ret = key_get_type_from_user(type, _type, sizeof(type)); in keyctl_keyring_search()
756 ktype = key_type_lookup(type); in keyctl_keyring_search()
848 if (key->type->read) { in keyctl_read_key()
855 ret = key->type->read(key, buffer, buflen); in keyctl_read_key()
1657 char type[32]; in keyctl_restrict_keyring() local
1670 ret = key_get_type_from_user(type, _type, sizeof(type)); in keyctl_restrict_keyring()
1684 ret = keyring_restrict(key_ref, _type ? type : NULL, restriction); in keyctl_restrict_keyring()