Function bpf_program_attach
Source pub fn bpf_program_attach(
program: BorrowedFd<'_>,
target: BorrowedFd<'_>,
attach_type: BpfAttachType,
flags: BpfAttachFlags,
) -> Result<(), Errno>
Expand description
BPF_PROG_ATTACH — attache historique (cgroup, sk_skb, flow_dissector…).
§Effets
Modifie le comportement du système (filtrage, hooks). Orchestré sous
entitlements par la couche 5 (ADR-010).
§Errors
- [
Errno::EPERM] : privilège manquant.
- [
Errno::EINVAL] : type d’attache incohérent avec la cible.