[PATCH v4 04/12] libbpf: Support exclusive map creation

Andrii Nakryiko andrii.nakryiko at gmail.com
Mon Sep 15 19:49:39 UTC 2025


On Sun, Sep 14, 2025 at 2:52 PM KP Singh <kpsingh at kernel.org> wrote:
>
> Implement setters and getters that allow map to be registered as
> exclusive to the specified program. The registration should be done
> before the exclusive program is loaded.
>
> Signed-off-by: KP Singh <kpsingh at kernel.org>
> ---
>  tools/lib/bpf/bpf.c      |  4 ++-
>  tools/lib/bpf/bpf.h      |  5 ++-
>  tools/lib/bpf/libbpf.c   | 69 ++++++++++++++++++++++++++++++++++++++++
>  tools/lib/bpf/libbpf.h   | 22 +++++++++++++
>  tools/lib/bpf/libbpf.map |  3 ++
>  5 files changed, 101 insertions(+), 2 deletions(-)
>

LGTM.

Acked-by: Andrii Nakryiko <andrii at kernel.org>

[...]



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