- PRIVILEGE
- CAP_BPF
- OWNERSHIP
- file desc
- CLEANUP
- automatic
- PINNING
- bpffs
- syscall / bpf() load
- verified native exec
- kernel event / hook
Loading eBPF is not free of security review. Since Linux 5.8, fine-grained capabilities split power across CAP_BPF, CAP_PERFMON (tracing), and CAP_NET_ADMIN (networking)—avoiding full root where possible.
Every program, map, and bpf_link lives behind a file descriptor. When your loader process exits or crashes, the kernel detaches the hook automatically unless explicitly pinned under /sys/fs/bpf.