Seccomp
Cheat sheet · https://pcornel.dk/topic.php?topic=4576
Answer
Seccomp filters restrict the system calls a process may invoke using BPF-based rules and actions such as allow, errno, trap, log, notify or kill, reducing kernel attack surface without inspecting pointed-to data safely or replacing broader sandbox controls.
Remember
- Seccomp enabled ≠ a restrictive or correct filter is active.
- Blocked syscall ≠ process otherwise confined from files, network or capabilities.
- Configuration file present ≠ parsed, loaded and effective runtime state.
- One allow/deny result ≠ complete DAC, privilege, LSM, firewall and application outcome.
First checks
grep Seccomp /proc/<pid>/status— seccomp modesystemd-analyze security <service>— systemd sandboxing incl. SystemCallFilterdocker info | grep -i seccomp— container default profile
Commands
mount
Verify in this order
syscall → seccomp filter → allow/deny
Where it usually breaks
First mismatch in platform/workload identity → desired configuration → management/control plane → runtime enforcement → telemetry → workload/resource outcome; preserve identity/policy/pre-state before mutation.
Linux Security → Seccomp proof map
| Boundary | Establish | Does not establish |
|---|---|---|
| Scope | Exact host, role, build/kernel, identity, workload and expected control | Does not prove policy receipt or effective runtime state |
| Effective state | Resultant/loaded policy, precedence, mode, labels/rules/keys and active services/kernel controls | Configuration presence does not prove enforcement |
| Runtime evidence | Correlated events/audit, process/token/credential, packet/syscall and workload result | One event, clean status or allow/deny does not prove complete security |
| Closure | Original allowed/denied workload works, unsafe state is removed and recovery/regression pass | Commit, restart, block or compliance result alone is not closure |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4576