Home
last modified time | relevance | path

Searched refs:trusted_keyring (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_verify_pkcs7_sig.c22 struct bpf_key *trusted_keyring) __ksym;
49 struct bpf_key *trusted_keyring; in BPF_PROG() local
78 trusted_keyring = bpf_lookup_user_key(user_keyring_serial, 0); in BPF_PROG()
80 trusted_keyring = bpf_lookup_system_key(system_keyring_id); in BPF_PROG()
82 if (!trusted_keyring) in BPF_PROG()
85 ret = bpf_verify_pkcs7_signature(&data_ptr, &sig_ptr, trusted_keyring); in BPF_PROG()
87 bpf_key_put(trusted_keyring); in BPF_PROG()
Dtest_kfunc_dynptr_param.c18 struct bpf_key *trusted_keyring) __ksym;
68 struct bpf_key *trusted_keyring; in BPF_PROG() local
85 trusted_keyring = bpf_lookup_system_key(0); in BPF_PROG()
86 if (!trusted_keyring) in BPF_PROG()
89 err = bpf_verify_pkcs7_signature(&ptr, &ptr, trusted_keyring); in BPF_PROG()
91 bpf_key_put(trusted_keyring); in BPF_PROG()
/linux-6.1.9/kernel/trace/
Dbpf_trace.c1332 struct bpf_key *trusted_keyring) in bpf_verify_pkcs7_signature() argument
1336 if (trusted_keyring->has_ref) { in bpf_verify_pkcs7_signature()
1345 ret = key_validate(trusted_keyring->key); in bpf_verify_pkcs7_signature()
1354 trusted_keyring->key, in bpf_verify_pkcs7_signature()