Searched refs:trusted_keyring (Results 1 – 6 of 6) sorted by relevance
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_kfunc_dynptr_param.c | 54 struct bpf_key *trusted_keyring; in BPF_PROG() 71 trusted_keyring = bpf_lookup_system_key(0); in BPF_PROG() 72 if (!trusted_keyring) in BPF_PROG() 75 err = bpf_verify_pkcs7_signature(&ptr, &ptr, trusted_keyring); in BPF_PROG() 77 bpf_key_put(trusted_keyring); in BPF_PROG() 60 struct bpf_key *trusted_keyring; BPF_PROG() local
|
| H A D | test_verify_pkcs7_sig.c | 44 struct bpf_key *trusted_keyring; in BPF_PROG() local 77 trusted_keyring = bpf_lookup_user_key(user_keyring_serial, 0); in BPF_PROG() 79 trusted_keyring = bpf_lookup_system_key(system_keyring_id); in BPF_PROG() 81 if (!trusted_keyring) in BPF_PROG() 84 ret = bpf_verify_pkcs7_signature(&data_ptr, &sig_ptr, trusted_keyring); in BPF_PROG() 86 bpf_key_put(trusted_keyring); in BPF_PROG()
|
| H A D | test_sig_in_xattr.c | 49 struct bpf_key *trusted_keyring; in BPF_PROG() local 75 trusted_keyring = bpf_lookup_user_key(user_keyring_serial, 0); in BPF_PROG() 76 if (!trusted_keyring) in BPF_PROG() 80 ret = bpf_verify_pkcs7_signature(&digest_ptr, &sig_ptr, trusted_keyring); in BPF_PROG() 82 bpf_key_put(trusted_keyring); in BPF_PROG()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | bpf_kfuncs.h | 80 struct bpf_key *trusted_keyring) __ksym;
|
| /linux/kernel/bpf/ |
| H A D | helpers.c | 4309 * @trusted_keyring: keyring with keys trusted for signature verification in bpf_task_work_ctx_reset() 4312 * with keys in a keyring referenced by *trusted_keyring*. 4318 struct bpf_key *trusted_keyring) in bpf_task_work_destroy() 4327 if (trusted_keyring->has_ref) { in bpf_task_work_ctx_put() 4336 ret = key_validate(trusted_keyring->key); in bpf_task_work_ctx_put() 4352 trusted_keyring->key, in bpf_task_work_callback() 4219 bpf_verify_pkcs7_signature(struct bpf_dynptr * data_p,struct bpf_dynptr * sig_p,struct bpf_key * trusted_keyring) bpf_verify_pkcs7_signature() argument
|
| /linux/include/linux/ |
| H A D | bpf.h | 3826 struct bpf_key *trusted_keyring); in bpf_tcp_sock_is_valid_access() 3849 struct bpf_key *trusted_keyring) in bpf_xdp_sock_convert_ctx_access() 3652 bpf_verify_pkcs7_signature(struct bpf_dynptr * data_p,struct bpf_dynptr * sig_p,struct bpf_key * trusted_keyring) bpf_verify_pkcs7_signature() argument
|