seccomp action
What a seccomp profile does when a process makes a system call: allow it, fail it with an error number, kill the process, or log it.
In more detail
A profile sets a defaultAction for every call it does not name, then lists system calls with their own action. SCMP_ACT_ERRNO makes the call fail with an error the program can handle, SCMP_ACT_KILL ends the process at once, and SCMP_ACT_LOG allows the call but records it. Logging first is a safe way to learn which calls a workload needs before you block anything.
Example
"defaultAction": "SCMP_ACT_ERRNO"Related terms
- seccomp — A Linux kernel feature that blocks a process from making system calls it has no need for.
- system call — A request a program makes to the kernel, such as open this file or start a new process.
Taught in
- Seccomp: Which Syscalls A Container May Make — Certified Kubernetes Security Specialist (CKS) Exam Prep