Skip to content

Instantly share code, notes, and snippets.

View PrathamKwatra's full-sized avatar

Pratham Kwatra PrathamKwatra

View GitHub Profile
@fntlnz
fntlnz / README.md
Last active March 3, 2025 05:23
Seccomp bpf filter example

Seccomp BPF filter example

Use bpf programs as filters for seccomp, the one in the example will block all the write syscalls after it's loaded.

Usage

Compile it with just

gcc main.c