Home
last modified time | relevance | path

Searched refs:keyring_ref (Results 1 – 4 of 4) sorted by relevance

/security/keys/
Dkeyctl.c66 key_ref_t keyring_ref, key_ref; in SYSCALL_DEFINE5() local
117 keyring_ref = lookup_user_key(ringid, KEY_LOOKUP_CREATE, KEY_NEED_WRITE); in SYSCALL_DEFINE5()
118 if (IS_ERR(keyring_ref)) { in SYSCALL_DEFINE5()
119 ret = PTR_ERR(keyring_ref); in SYSCALL_DEFINE5()
125 key_ref = key_create_or_update(keyring_ref, type, description, in SYSCALL_DEFINE5()
136 key_ref_put(keyring_ref); in SYSCALL_DEFINE5()
446 key_ref_t keyring_ref; in keyctl_keyring_clear() local
449 keyring_ref = lookup_user_key(ringid, KEY_LOOKUP_CREATE, KEY_NEED_WRITE); in keyctl_keyring_clear()
450 if (IS_ERR(keyring_ref)) { in keyctl_keyring_clear()
451 ret = PTR_ERR(keyring_ref); in keyctl_keyring_clear()
[all …]
Dkeyring.c842 key_ref_t keyring_search_aux(key_ref_t keyring_ref, in keyring_search_aux() argument
849 ctx->possessed = is_key_possessed(keyring_ref); in keyring_search_aux()
852 keyring = key_ref_to_ptr(keyring_ref); in keyring_search_aux()
859 err = key_task_permission(keyring_ref, ctx->cred, KEY_NEED_SEARCH); in keyring_search_aux()
926 key_ref_t find_key_to_update(key_ref_t keyring_ref, in find_key_to_update() argument
932 keyring = key_ref_to_ptr(keyring_ref); in find_key_to_update()
955 return make_key_ref(key, is_key_possessed(keyring_ref)); in find_key_to_update()
Dinternal.h100 extern key_ref_t find_key_to_update(key_ref_t keyring_ref,
133 extern key_ref_t keyring_search_aux(key_ref_t keyring_ref,
Dkey.c784 key_ref_t key_create_or_update(key_ref_t keyring_ref, in key_create_or_update() argument
815 keyring = key_ref_to_ptr(keyring_ref); in key_create_or_update()
856 ret = key_permission(keyring_ref, KEY_NEED_WRITE); in key_create_or_update()
867 key_ref = find_key_to_update(keyring_ref, &index_key); in key_create_or_update()
901 key_ref = make_key_ref(key, is_key_possessed(keyring_ref)); in key_create_or_update()