Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_kfunc_dynptr_param.c19 struct bpf_key *trusted_keyring) __ksym;
60 struct bpf_key *trusted_keyring; in BPF_PROG() local
77 trusted_keyring = bpf_lookup_system_key(0); in BPF_PROG()
78 if (!trusted_keyring) in BPF_PROG()
81 err = bpf_verify_pkcs7_signature(&ptr, &ptr, trusted_keyring); in BPF_PROG()
83 bpf_key_put(trusted_keyring); in BPF_PROG()
H A Dtest_verify_pkcs7_sig.c44 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 Dtest_sig_in_xattr.c49 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 Dbpf_kfuncs.h80 struct bpf_key *trusted_keyring) __ksym;
/linux/kernel/bpf/
H A Dhelpers.c3872 struct bpf_key *trusted_keyring) in bpf_verify_pkcs7_signature() argument
3881 if (trusted_keyring->has_ref) { in bpf_verify_pkcs7_signature()
3890 ret = key_validate(trusted_keyring->key); in bpf_verify_pkcs7_signature()
3901 trusted_keyring->key, in bpf_verify_pkcs7_signature()
/linux/include/linux/
H A Dbpf.h3450 struct bpf_key *trusted_keyring);
3469 struct bpf_key *trusted_keyring) in bpf_verify_pkcs7_signature() argument