Synopsis
Generate Seccomp profiles based on observed syscall usage.Flags
| Flag | Type | Description | Default |
|---|---|---|---|
-n, --namespace | string | Namespace of the pod | Current namespace |
-a, --all | bool | Generate for all pods in namespace | false |
-A, --all-namespaces | bool | Generate for all pods cluster-wide | false |
--output-dir | string | Directory to save profiles | seccomp-profiles |
--default-action | string | Action for unlisted syscalls | SCMP_ACT_ERRNO |
Default Actions
SCMP_ACT_ERRNO- Return error for unlisted syscalls (recommended)SCMP_ACT_LOG- Log unlisted syscalls but allow them (audit mode)SCMP_ACT_KILL- Kill process on unlisted syscall (strictest)
Examples
See Generating Seccomp Profiles for detailed usage.