Skip to content

Privileges and FD lifecycles

Step 8 of 9Concept
PRIVILEGE
CAP_BPF
OWNERSHIP
file desc
CLEANUP
automatic
PINNING
bpffs
  • syscall / bpf() load
  • verified native exec
  • kernel event / hook
Kernel Space & eBPF VM, step 8 of 9

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.

Type to search…

↑↓ navigate↵ selectEsc close