[PATCH bpf-next v7 6/8] tools/libbpf: Add support for BPF_PROG_TYPE_LSM

James Morris jmorris at namei.org
Fri Mar 27 00:30:31 UTC 2020


On Thu, 26 Mar 2020, KP Singh wrote:

> From: KP Singh <kpsingh at google.com>
> 
> Since BPF_PROG_TYPE_LSM uses the same attaching mechanism as
> BPF_PROG_TYPE_TRACING, the common logic is refactored into a static
> function bpf_program__attach_btf_id.
> 
> A new API call bpf_program__attach_lsm is still added to avoid userspace
> conflicts if this ever changes in the future.
> 
> Signed-off-by: KP Singh <kpsingh at google.com>
> Reviewed-by: Brendan Jackman <jackmanb at google.com>
> Reviewed-by: Florent Revest <revest at google.com>
> Acked-by: Yonghong Song <yhs at fb.com>
> Acked-by: Andrii Nakryiko <andriin at fb.com>


Reviewed-by: James Morris <jamorris at linux.microsoft.com>


-- 
James Morris
<jmorris at namei.org>



More information about the Linux-security-module-archive mailing list