Strict mode and filter mode
Strict mode allows only four system calls: read, write, _exit and sigreturn. Any other call ends the thread that made it.
Filter mode, also called seccomp-bpf, runs a Berkeley Packet Filter (BPF) program on each call. The program returns one of these actions:
SECCOMP_RET_ALLOW: the call runs.SECCOMP_RET_ERRNO: the call returns an error code and does not run.SECCOMP_RET_TRAP: the kernel sendsSIGSYSto the thread.SECCOMP_RET_KILL_PROCESS: the process ends at once and writes a core dump.
Default profiles in containers
Docker applies a default seccomp profile to each container. The profile is an allowlist. A blocked call returns Permission Denied. The profile blocks calls such as keyctl, mount, ptrace and reboot.
How gVisor and Firecracker use seccomp
gVisor's systrap platform relies on seccomp's SECCOMP_RET_TRAP to intercept system calls. The gVisor Sentry itself runs in a restricted seccomp container. Firecracker applies its own seccomp filters to its VMM, API and vCPU threads. Its jailer does not apply them. The --no-seccomp option turns the filters off, and Firecracker's docs say not to use it in production.
What to check on a provider's page
Check which isolation layers the provider names. A seccomp filter limits which system calls a process makes. It does not add a second kernel.