Description
On Linux, seccomp:unconfined turns off Docker’s system call filter for the service.
Potential impact
A compromised application can use system calls the default profile would block, exposing more of the host kernel.
Remediation
Remove seccomp:unconfined from security_opt and verify that the runtime applies its default profile. If the service needs a blocked call, test a profile that permits that call. Keep debugging exceptions out of production.
Examples
Use a Linux Docker host with seccomp support. Replace sample/app:latest with your service image.
Before
yaml
services:
demo:
image: sample/app:latest
security_opt:
- seccomp:unconfined
After
yaml
services:
demo:
image: sample/app:latest