Re: [PATCH] bpf: Add signature checking for BPF programs

2021-01-05 Thread Alexei Starovoitov
On Tue, Jan 5, 2021 at 12:00 AM Xichen Lin wrote: > > From: Xichen Lin > > Check the signature of a BPF program against the same set of keys for > module signature checking. > > Currently the format of a signed BPF program is similar to that of > a signed kernel module, composed of BPF bytecode,

[PATCH] bpf: Add signature checking for BPF programs

2021-01-05 Thread Xichen Lin
From: Xichen Lin Check the signature of a BPF program against the same set of keys for module signature checking. Currently the format of a signed BPF program is similar to that of a signed kernel module, composed of BPF bytecode, signature, module_signature structure and a magic string, in