chmod-bpf

Crates.iochmod-bpf
lib.rschmod-bpf
version0.4.0
sourcesrc
created_at2024-06-08 12:22:19.677064
updated_at2024-07-27 05:37:05.962131
descriptionManaging BPF device permissions on macOS
homepagehttps://github.com/shellrow/chmod-bpf
repositoryhttps://github.com/shellrow/chmod-bpf
max_upload_size
id1265703
size77,057
shellrow (shellrow)

documentation

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

README

chmod-bpf Crates.io License

Managing BPF device permissions on macOS.
This tool provides a simple way to check, set, or remove permissions for BPF devices to enhance security and ease of management for developers and system administrators.

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

Install prebuilt binaries via Homebrew

brew install shellrow/tap-chmod-bpf/chmod-bpf

Cargo

cargo install chmod-bpf

Clone and build

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

Usage

Check BPF device permissions

chmod-bpf check

Install the chmod-bpf daemon

sudo chmod-bpf install

Uninstall the chmod-bpf daemon

sudo chmod-bpf uninstall

Display help information

chmod-bpf --help
Commit count: 21

cargo fmt