chmod-bpf

Crates.iochmod-bpf
lib.rschmod-bpf
version0.5.0
created_at2024-06-08 12:22:19.677064+00
updated_at2025-11-22 06:38:11.49935+00
descriptionManaging BPF device permissions on macOS
homepagehttps://github.com/shellrow/chmod-bpf
repositoryhttps://github.com/shellrow/chmod-bpf
max_upload_size
id1265703
size71,857
shellrow (shellrow)

documentation

https://github.com/shellrow/chmod-bpf

README

chmod-bpf Crates.io License

Managing BPF device permissions on macOS.

chmod-bpf is a helper utility that focuses on two things:

  • Auditing the current BPF device permissions so you immediately know whether packet capture tools will work.
  • Installing or uninstalling the hardened launch daemon, scripts, and groups that keep /dev/bpf* devices accessible to trusted operators.

Features

  • Check current BPF device permissions.
  • Install and uninstall a daemon to automatically manage BPF device permissions.
  • Simple CLI interface for easy interaction.

Installation

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/shellrow/chmod-bpf/releases/latest/download/chmod-bpf-installer.sh | sh

Cargo

cargo install chmod-bpf

Clone and build

git clone https://github.com/shellrow/chmod-bpf.git
cd chmod-bpf
cargo build --release

Usage

The CLI exposes three subcommands:

  • check - Audits BPF permissions, group membership, and known daemon configurations.
  • install - Installs the launch daemon, helper scripts, and access_bpf group. Requires sudo.
  • uninstall - Removes all helper assets and tears down the daemon. Requires sudo.

Every administrative subcommand accepts -y/--yes to skip the confirmation prompt when you are scripting the tool.

Inspect the current permissions

chmod-bpf check

Install everything

sudo chmod-bpf install

Remove every asset that was previously installed

sudo chmod-bpf uninstall
Commit count: 27

cargo fmt