Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/security/keys/
Dkeyctl.c80 key_ref_t keyring_ref, key_ref; in SYSCALL_DEFINE5() local
126 keyring_ref = lookup_user_key(ringid, KEY_LOOKUP_CREATE, KEY_NEED_WRITE); in SYSCALL_DEFINE5()
127 if (IS_ERR(keyring_ref)) { in SYSCALL_DEFINE5()
128 ret = PTR_ERR(keyring_ref); in SYSCALL_DEFINE5()
134 key_ref = key_create_or_update(keyring_ref, type, description, in SYSCALL_DEFINE5()
145 key_ref_put(keyring_ref); in SYSCALL_DEFINE5()
469 key_ref_t keyring_ref; in keyctl_keyring_clear() local
473 keyring_ref = lookup_user_key(ringid, KEY_LOOKUP_CREATE, KEY_NEED_WRITE); in keyctl_keyring_clear()
474 if (IS_ERR(keyring_ref)) { in keyctl_keyring_clear()
475 ret = PTR_ERR(keyring_ref); in keyctl_keyring_clear()
[all …]
Dkeyring.c899 key_ref_t keyring_search_rcu(key_ref_t keyring_ref, in keyring_search_rcu() argument
906 ctx->possessed = is_key_possessed(keyring_ref); in keyring_search_rcu()
909 keyring = key_ref_to_ptr(keyring_ref); in keyring_search_rcu()
916 err = key_task_permission(keyring_ref, ctx->cred, KEY_NEED_SEARCH); in keyring_search_rcu()
1021 int keyring_restrict(key_ref_t keyring_ref, const char *type, in keyring_restrict() argument
1029 keyring = key_ref_to_ptr(keyring_ref); in keyring_restrict()
1098 key_ref_t find_key_to_update(key_ref_t keyring_ref, in find_key_to_update() argument
1104 keyring = key_ref_to_ptr(keyring_ref); in find_key_to_update()
1127 return make_key_ref(key, is_key_possessed(keyring_ref)); in find_key_to_update()
Dkey.c815 key_ref_t key_create_or_update(key_ref_t keyring_ref, in key_create_or_update() argument
847 keyring = key_ref_to_ptr(keyring_ref); in key_create_or_update()
901 ret = key_permission(keyring_ref, KEY_NEED_WRITE); in key_create_or_update()
912 key_ref = find_key_to_update(keyring_ref, &index_key); in key_create_or_update()
949 key_ref = make_key_ref(key, is_key_possessed(keyring_ref)); in key_create_or_update()
Dinternal.h109 extern key_ref_t find_key_to_update(key_ref_t keyring_ref,
143 extern key_ref_t keyring_search_rcu(key_ref_t keyring_ref,
/kernel/linux/linux-5.10/Documentation/security/keys/
Dcore.rst1240 key_ref_t keyring_search(key_ref_t keyring_ref,