Linux only — requires root or CAP_NET_ADMIN and a kernel with CONFIG_CONNECTOR=y
| Requirement | Notes |
|---|---|
| Linux kernel | Any modern distro kernel (CONFIG_CONNECTOR=y is standard) |
| CAP_NET_ADMIN | Required to subscribe to the netlink proc socket. sudo works. |
| x86-64 or arm64 | Pre-built binaries provided for both. Build from source for others. |
Fully static binaries โ no libc, no runtime dependencies. Download, mark executable, run with sudo.
$ curl -fsSL https://github.com/binRick/proc-trace-exec/releases/latest/download/proc-trace-exec-linux-amd64 -o proc-trace-exec $ chmod +x proc-trace-exec $ sudo mv proc-trace-exec /usr/local/bin/ $ sudo proc-trace-exec --help
$ curl -fsSL https://github.com/binRick/proc-trace-exec/releases/latest/download/proc-trace-exec-linux-arm64 -o proc-trace-exec $ chmod +x proc-trace-exec $ sudo mv proc-trace-exec /usr/local/bin/
./proc-trace-exec --help does not require root and exits immediately.
$ sudo proc-trace-exec -t bash -c "echo hello" 12345+ bash 12346+ echo 12346- echo exited status=0 12345- bash exited status=0
Built natively inside an AlmaLinux 9 container via GitHub Actions. Compatible with any RHEL9-based distro.
# download the latest RPM from GitHub releases $ curl -fsSL -O https://github.com/binRick/proc-trace-exec/releases/latest/download/proc-trace-exec-0.1.0-1.el9.x86_64.rpm # install $ sudo rpm -ivh proc-trace-exec-*.rpm # or with dnf $ sudo dnf localinstall proc-trace-exec-*.rpm # verify $ which proc-trace-exec /usr/local/bin/proc-trace-exec
Find the exact RPM filename on the Releases page โ
Produces a native binary for your current platform. Zero external dependencies โ the Go standard library is all that's needed.
$ git clone https://github.com/binRick/proc-trace-exec $ cd proc-trace-exec $ go build -trimpath -ldflags="-s -w" -o proc-trace-exec . $ sudo mv proc-trace-exec /usr/local/bin/
build.sh script builds a fully static binary using a Docker
golang:1.22-alpine image โ no local Go toolchain required.
See Building โ for details.