bpf: Add struct bpf_token_info
The 'commit 35f96de0 ("bpf: Introduce BPF token object")' added BPF token as a new kind of BPF kernel object. And BPF_OBJ_GET_INFO_BY_FD already used to get BPF object info, so we can also get token info with this cmd. One usage scenario, when program runs failed with token, because of the permission failure, we can report what BPF token is allowing with this API for debugging. Acked-by:Andrii Nakryiko <andrii@kernel.org> Signed-off-by:
Tao Chen <chen.dylane@linux.dev> Link: https://lore.kernel.org/r/20250716134654.1162635-1-chen.dylane@linux.dev Signed-off-by:
Alexei Starovoitov <ast@kernel.org>
Loading
Please sign in to comment