Created
December 3, 2021 17:08
-
-
Save invidian/34b6222a030718b4b4d77cde25725dcf to your computer and use it in GitHub Desktop.
Minimal seccomp profile for Docker container running Go binary
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"defaultAction": "SCMP_ACT_ERRNO", | |
"syscalls": [ | |
{ | |
"names": [ | |
// Used by Go binary. | |
"arch_prctl", | |
"clone", | |
"close", | |
"execve", | |
"exit_group", | |
"fcntl", | |
"futex", | |
"gettid", | |
"mmap", | |
"openat", | |
"read", | |
"rt_sigaction", | |
"rt_sigprocmask", | |
"sched_getaffinity", | |
"sigaltstack", | |
"write", | |
// All below are required by runc to create a container. | |
"fstatfs", | |
"getdents64", | |
"capget", | |
"capset", | |
"prctl", | |
"fstat", | |
"newfstatat", | |
"setgroups", | |
"setgid", | |
"setuid", | |
"chdir", | |
"getppid" | |
], | |
"action": "SCMP_ACT_ALLOW" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment