---
title: "Privileges and FD lifecycles"
---

> Documentation Index
> Fetch the complete documentation index at: https://example.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Privileges and FD lifecycles

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](https://example.com/ebpf-field-guide/glossary/#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`.

> **Watch out:** CAP_BPF still lets a process inspect kernel memory via tracing helpers. Treat eBPF loaders as privileged infrastructure requiring security sign-off.

Source: https://example.com/ebpf-field-guide/core-architecture/kernel-and-vm/lifecycle/index.mdx
