Join our Newsletter — 33% off our NHI Course
Home› Guides› System Calls and Seccomp for Beginners: Limiting What…
Guide Endpoint Security

System Calls and Seccomp for Beginners: Limiting What a Program Can Ask the Operating System to Do

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 2 December 2026 10 min read
On this page

Seccomp is a Linux feature that limits which requests a program may make to the operating system.

This guide is for anyone who has seen "seccomp" or "system calls" in a container setting and wants to know what they mean. You do not need to write code to be affected: if your business runs apps in containers or on Linux servers, this setting changes how much harm a hijacked app could do.

In short

  • Programs cannot touch files, networks or hardware directly. They ask the core of the operating system, using requests called system calls.
  • Seccomp gives a program a list of the requests it may make. Others are refused.
  • A shorter list means a hijacked program has fewer ways to cause harm.
  • Container tools offer a default list. Keep it switched on, and treat turning it off as a risky exception.

What you will learn

  • Explain what a system call is in one sentence.
  • Explain how seccomp narrows what a program can ask for.
  • Spot container settings that switch seccomp off.
  • Ask your team whether your apps run with a seccomp profile.
Core of the operating system (kernel)
the part that controls files, memory, networks and hardware for every program.
Request to the core (system call)
how a program asks the kernel to do something for it.
Allowed request list (seccomp profile)
the list of system calls a program may make.

What are system calls and seccomp?

Think of a restaurant with a serving hatch. Diners cannot walk into the kitchen. They pass their orders through the hatch, and the kitchen does the cooking.

On a computer, programs are the diners and the kernel, the core of the operating system, is the kitchen. When a program wants to read a file or send data, it asks the kernel. That request is called a system call, and the Linux manual describes it as an entry point into the kernel[1].

Seccomp, short for secure computing mode, is a Linux feature that limits which system calls a program can make[2][5]. In the restaurant picture, it is a short menu for one table. Orders that are not on that table's menu are turned away at the hatch.

Where the comparison stops working: a restaurant menu is meant to tempt you. A seccomp list is meant to be as short as the program can live with, and the program never sees a menu. It simply gets an error when it asks for something not allowed.

Why does it matter?

Many attacks start by taking over a normal program. What the attacker can do next depends partly on what that program is allowed to ask the kernel for.

If you look after servers or containers

What could happen: a container runs with seccomp switched off, so a hijacked app can ask for far more than it needs.

Check this: look for settings that say "unconfined" or "privileged" and ask why they are there.

Next: Container Security for Beginners

If you are a developer

What could happen: your app fails under the default list, and someone turns seccomp off to make it work.

Check this: find out which request was refused and allow only that one, with a record of why.

Next: Docker for Beginners

If you manage a technical team

What could happen: a quick fix that removed a safety layer stays in place for months.

Check this: ask for a list of workloads running without a seccomp profile, with an owner for each.

Next: Least Privilege for Beginners

What does it look like?

Real profiles are written in a technical format. Here is the same idea in plain words, as a made-up summary card.

Example only. All values are made up.

Workload:        EXAMPLE-web-app
Seccomp profile: runtime default           (1)
Default action:  refuse anything not listed (2)
Allowed:         read and write files, use the network
Refused:         load kernel add-ons, change the clock (3)
Workload:        EXAMPLE-old-reporting-job
Seccomp profile: unconfined (FAKE)         (4)
  1. The ready-made list that comes with the container tool.
  2. Requests not on the list get an error instead of running.
  3. In a real file, this line would contain the names of system calls that are blocked.
  4. No filter at all: this job can make any request the kernel offers.

Why this is risky: the second job has no seccomp list. If someone took it over, they would have every kernel request available to try.

The safer way: every workload runs with at least the default profile. Any exception is approved, recorded and reviewed.

How does it work?

  1. A profile is chosen. The person who runs the program, or the container tool, picks a list of allowed system calls.
  2. The program asks. Each time the program needs the kernel, it makes a system call.
  3. The filter checks. Before the kernel acts, seccomp compares the request with the list.
  4. Allowed or refused. Listed requests run as normal. Others are refused, usually with an error, or the program can be stopped, depending on the profile.

Docker, a popular container tool, applies a default profile to every container unless someone overrides it. That profile works as an allowlist, a list of what is allowed, and it disables around 44 of more than 300 system calls[3]. Docker's documentation advises against changing the default profile[3].

Kubernetes, a tool that runs many containers, can apply the container runtime's own default profile. It notes that these defaults can differ between runtimes and versions, and that privileged containers always run without a filter[4].

Seccomp is one layer, not a full wall. The Linux kernel's own documentation says system call filtering is not a sandbox, but a tool for people who build sandboxes. It reduces how much of the kernel a program can reach[2].

Diagram titled How a seccomp filter checks each request. Boxes in a row. Box 1, Program needs help: an app wants to open a file, use the network or start a task. Arrow to box 2, It asks the kernel: it makes a request called a system call. Arrow to box 3, Filter checks: seccomp compares the request with the program's allowed list. Arrow to box 4a, If on the list: the kernel carries out the request as normal. Beside it, box 4b, If not on the list: the request is refused, usually with an error, or the program is stopped. A note underneath says the filter shrinks what a program can ask for; if an attacker takes over the program, they inherit that shorter list; it is one layer, so pair it with other controls.
Figure 1. Seccomp sits between a program and the kernel and checks each request against an allowed list.

A worked example

Kofi Osei looks after the servers for a small travel website. The site runs in containers. A new colleague, Tomas Lindahl, has been asked to tidy up the container settings.

Tomas lists every workload and its seccomp setting. Most use the default profile that the container tool provides. One old job, which builds weekly reports, is set to "unconfined", meaning no filter at all.

Kofi checks the change history. A year ago, the job failed after an update. Someone switched seccomp off to make it run, and nobody switched it back on.

Tomas turns the default profile back on in a test copy. The job fails again. He reads the error and finds one refused request. It is linked to a feature of an old reporting library.

Kofi and Tomas have two choices. They could allow that one request in a custom profile, or they could update the library. They update the library, because the old one is no longer kept up to date. In the test copy, the job now runs with the default profile.

They roll the change out. Tomas adds a check to the team's review list: any new "unconfined" or "privileged" setting needs a named approver, a reason and a review date.

Kofi also asks Tomas to note the workloads that need extra permissions, so they can be looked at first in the next review.

Myths and mistakes

What people thinkWhat is true
Containers are fully separate, so seccomp is not needed.Seccomp adds a layer by limiting what each container can ask the kernel for.
Seccomp makes a program safe on its own.It is one layer. Pair it with least privilege, updates and other controls.
If an app breaks, switch seccomp off.Find the refused request and allow only that, or fix the app. Record any exception.
A privileged container still gets the default filter.In Kubernetes, privileged containers always run without a seccomp filter.
Every container tool uses the same default list.Defaults differ between tools and versions. Check what yours applies.

What can I do this week?

  • Ask your team which of your workloads run with no seccomp profile at all.
  • Search your container settings for the words "unconfined" and "privileged", and list each one you find.
  • Give each exception an owner, a reason and a review date.
  • Test one exception with the default profile switched back on.
  • Add a seccomp check to your container review list.

Checklist

  • Every container runs with at least the default seccomp profile.
  • No container is set to "unconfined" without approval.
  • Privileged containers are rare, approved and reviewed.
  • Custom profiles allow only the requests the app needs.
  • Refused requests are looked into, not hidden by switching seccomp off.
  • The team knows which default profile its container tool applies.
  • Seccomp sits alongside other controls, such as least privilege and updates.

Common questions

What is a system call in simple terms?

A system call is a request from a program to the core of the operating system. Programs use them to open files, use the network, start other programs and more. They are the main way a program asks the kernel to act for it.

Is seccomp switched on by default?

In Docker, yes: containers use a default profile unless someone overrides it. In Kubernetes, it depends on how the cluster and each workload are set up. Check your own settings rather than assuming.

Will seccomp break my app?

Usually not with the default profile, which aims to block calls most apps do not need. Some apps do fail. If yours does, find the refused request and allow only that one, rather than switching the filter off.

Is seccomp only for containers?

No. Seccomp is a Linux kernel feature, so any Linux program can use it. Container tools simply make it easier to apply, by giving every container a ready-made profile that you can keep or adjust.

How is seccomp different from user permissions?

User permissions decide which files and resources an account may use. Seccomp decides which kinds of request a program may make to the kernel at all. They work together, and neither replaces the other.

Where next?

Ready for the detail? Read the practitioner guide: seccomp Guide. It goes further into filter modes and actions, Docker, Kubernetes and systemd profiles, and how to build and roll out custom profiles.

Also useful:

Related NHI Mgmt Group resources: Container Security for Beginners, Docker for Beginners and Non-Human Identities for Beginners.

Key terms

Kernel
The core of an operating system, which controls memory, processors, files and hardware for every program.
System call
The way a program asks the kernel to do something for it, such as reading a file.
Seccomp
A Linux kernel feature that limits which system calls a program may use.
Allowlist
A list of what is allowed, with everything else refused.
Container
A program packaged with what it needs and run with limits on what it can reach.
Privileged container
A container given extra access to the host beyond normal limits.
Attack surface
All the points where an attacker could try to get in or cause harm.

Sources and further reading

  1. Linux man-pages project, "intro(2): introduction to system calls". https://man7.org/linux/man-pages/man2/intro.2.html (accessed 2 Dec 2026).
  2. The Linux Kernel documentation, "Seccomp BPF (SECure COMPuting with filters)". https://www.kernel.org/doc/html/latest/userspace-api/seccomp_filter.html (accessed 2 Dec 2026).
  3. Docker Docs, "Seccomp security profiles for Docker". https://docs.docker.com/engine/security/seccomp/ (accessed 2 Dec 2026).
  4. Kubernetes Documentation, "Seccomp and Kubernetes". https://kubernetes.io/docs/reference/node/seccomp/ (accessed 2 Dec 2026).
  5. Kubernetes Documentation, "Restrict a Container's Syscalls with seccomp", last modified 12 April 2026. https://kubernetes.io/docs/tutorials/security/seccomp/ (accessed 2 Dec 2026).

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.