Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

Seccomp · Linux Security

Direct 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.

When to use this

Use it when configuring, checking or troubleshooting Seccomp in Linux Security.

First 30 seconds

1. Seccomp filters syscalls a process may use.

2. systemd SystemCallFilter=.

3. Container runtimes apply default profiles.

4. Reduces kernel attack surface.

5. Test with audit/log mode.

Operational verification

syscall → seccomp filter → allow/deny

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

A seccomp action shows a syscall matched a filter, but it does not show complete sandboxing, safe arguments or absence of alternative allowed syscalls.

Suspicious evidence: default allow filter, wrong architecture, filter not inherited, action logs only, broker overly privileged, compatibility break, bypass via allowed syscall or seccomp assumed to filter paths.

Platform / version applicability
Platform and workload security
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformPlatform and workload security
Scope / prerequisiteUse it when configuring, checking or troubleshooting Seccomp in Linux Security.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

process/exec and no-new-privileges → inherited/installed BPF filter → syscall number/arguments → action → kernel operation allowed/denied/notified → audit/application outcome

Evidence references

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.

observation · 1
Key points
  • 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.
Key checks
  • grep Seccomp /proc/<pid>/status — seccomp mode
  • systemd-analyze security <service> — systemd sandboxing incl. SystemCallFilter
  • docker info | grep -i seccomp — container default profile
ReferenceWhat it is1 section · depth on demand

Where seccomp is used

  • Docker/containerd default profile blocks ~44 dangerous syscalls (for example mount, kexec_load, bpf without privileges).
  • Kubernetes: securityContext.seccompProfile.type: RuntimeDefault.
  • systemd: SystemCallFilter=@system-service.
  • Browsers and OpenSSH sandbox their processes with seccomp.

Check a process: grep Seccomp /proc/<pid>/status (2 = filter mode).

ReferenceImportant terms & boundaries2 sections · depth on demand

What this shows and what it does not

A seccomp action shows a syscall matched a filter, but it does not show complete sandboxing, safe arguments or absence of alternative allowed syscalls.

In depth

Seccomp (secure computing mode) filters which system calls a process may make. By blocking system calls an application never needs, it shrinks the kernel attack surface available to an attacker who compromises that process.

WhereHow
ContainersDocker/containerd default seccomp profile; Kubernetes seccompProfile: RuntimeDefault
systemd servicesSystemCallFilter=@system-service
Applicationslibseccomp in code (browsers, OpenSSH sandbox)
[Service]
SystemCallFilter=@system-service
SystemCallErrorNumber=EPERM
securityContext:
  seccompProfile: { type: RuntimeDefault }

Enable the runtime default profile for all Kubernetes workloads — it is off by default in many clusters unless explicitly set.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docPlatform and workload security current

Authoritative/upstream documentation reviewed for bounded claims in Linux Security → Seccomp. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://docs.kernel.org/security/ · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
seccomp-bpfLinux syscall filteringsecure computing mode
Embedded reference data

Quick lookup tables

Linux Security → Seccomp proof map

Fast scope, effective-state, runtime-evidence and closure boundaries for Linux Security → Seccomp.

BoundaryEstablishDoes not establish
ScopeExact host, role, build/kernel, identity, workload and expected controlDoes not prove policy receipt or effective runtime state
Effective stateResultant/loaded policy, precedence, mode, labels/rules/keys and active services/kernel controlsConfiguration presence does not prove enforcement
Runtime evidenceCorrelated events/audit, process/token/credential, packet/syscall and workload resultOne event, clean status or allow/deny does not prove complete security
ClosureOriginal allowed/denied workload works, unsafe state is removed and recovery/regression passCommit, restart, block or compliance result alone is not closure
Confirmation

Confirm action

Continue?