Definitions

How computers for agents work, from the hardware to the sandbox.

Definitionss

Seccomp

Seccomp is a Linux kernel feature that restricts which system calls a process can make.

Seccomp, short for secure computing mode, is a Linux kernel feature that lets a process turn off the system calls it does not need. The kernel then refuses those calls for that process and everything it starts. A program usually turns calls off early, once it has finished setup steps that need more of the kernel. A runtime can also do this for a program just before starting it.

Each system call runs kernel code that an attacker might exploit. Most programs need only a fraction of the calls Linux offers, so turning the rest off shrinks the part of the kernel that untrusted code can reach. A bug in a call that no sandboxed program can make is harmless to that sandbox. Filters can also check the arguments of a call, not only which call it is.

Seccomp is one layer of a sandbox rather than a sandbox on its own. It works beside namespaces, control groups and capabilities, and it also guards the host processes that run virtual machines. On its own it leaves the whole file system and network in view, as long as the calls that reach them are allowed. Its job is narrower, cutting down the kernel code in reach rather than hiding resources.