#ebpf #sandbox #cargo-warden #shared #structures

qqrm-bpf-api

Shared eBPF API structures for the cargo-warden sandbox

1 unstable release

Uses new Rust 2024

0.1.0 Sep 16, 2025

#993 in Unix APIs


Used in 2 crates

MIT/Apache

5KB
86 lines

cargo-warden

Setup Requirements

The project requires a Linux system with the following features:

  • Kernel ≥5.13
uname -r
  • BPF LSM enabled
cat /sys/kernel/security/lsm | grep bpf
  • cgroup v2 mounted
mount | grep cgroup2
  • Capabilities CAP_BPF and CAP_SYS_ADMIN
capsh --print | grep -E 'cap_(bpf|sys_admin)'

Building prebuilt BPF objects

Generate the prebuilt BPF artifacts with:

scripts/build-bpf.sh

The script installs the nightly toolchain, required components and the bpf-linker before placing the resulting object files under prebuilt/<arch>.

Generated artifacts are excluded from version control; rerun the script to refresh them.

No runtime deps