Use this when restricting system calls containers may make.
Seccomp · Container Security
Seccomp filters which system calls a process may make. Container runtimes apply a default profile blocking dangerous syscalls; custom profiles can restrict an application even further.
1. Use RuntimeDefault seccomp at least.
2. Custom profiles for sensitive workloads.
3. Never Unconfined in production.
4. Restricted PSA requires it.
5. Test in audit mode.
syscall → seccomp filter → allow/deny
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
seccomp=unconfinedto fix a problem and leaving it.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Default seccomp profiles block dangerous syscalls.
- Custom profiles can be stricter.
- Unconfined seccomp removes protection.
kubectl get pod <p> -o jsonpath='{..seccompProfile}'— seccomp profiledocker inspect <c> --format '{{.HostConfig.SecurityOpt}}'— Dockergrep Seccomp /proc/<pid>/status— mode 2 = filtering
ReferenceWhy it matters1 section · depth on demand
Commands
docker info | grep -i seccomp
docker run --security-opt seccomp=profile.json app
grep Seccomp /proc/<pid>/status # 2 = filter mode
Kubernetes: securityContext.seccompProfile.type: RuntimeDefault.
ReferenceImportant terms & boundaries2 sections · depth on demand
How it works
Seccomp filters system calls a process may make. Docker and containerd apply a default profile that blocks around 40+ rarely needed and risky syscalls; custom profiles can restrict further.
Example
securityContext:
seccompProfile:
type: RuntimeDefault
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Container Security → Seccomp. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/sp/800/190/final · confidence 94%