Skip to content

Instantly share code, notes, and snippets.

@saschagrunert
Created November 14, 2022 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saschagrunert/bf2415f741c637cf3e16d557e994cf89 to your computer and use it in GitHub Desktop.
Save saschagrunert/bf2415f741c637cf3e16d557e994cf89 to your computer and use it in GitHub Desktop.
seccomp profile for the default nginx container
{
"defaultAction": "SCMP_ACT_ERRNO",
"architectures": ["SCMP_ARCH_X86_64", "SCMP_ARCH_X86", "SCMP_ARCH_X32"],
"syscalls": [
{
"names": [
"accept4",
"access",
"arch_prctl",
"bind",
"brk",
"capget",
"capset",
"chdir",
"chown",
"clone",
"close",
"connect",
"dup2",
"epoll_create",
"epoll_ctl",
"epoll_pwait",
"epoll_wait",
"eventfd2",
"execve",
"exit",
"exit_group",
"faccessat",
"fadvise64",
"fchdir",
"fchown",
"fcntl",
"fgetxattr",
"fsetxattr",
"fstat",
"fstatfs",
"futex",
"getcwd",
"getdents",
"getdents64",
"getegid",
"geteuid",
"getgid",
"getpid",
"getppid",
"getrlimit",
"getuid",
"io_setup",
"ioctl",
"listen",
"lseek",
"mkdir",
"mmap",
"mprotect",
"munmap",
"nanosleep",
"newfstatat",
"open",
"openat",
"pipe",
"prctl",
"pread64",
"prlimit64",
"pwrite64",
"read",
"recvfrom",
"recvmsg",
"rename",
"rt_sigaction",
"rt_sigprocmask",
"rt_sigreturn",
"rt_sigsuspend",
"sched_getaffinity",
"seccomp",
"select",
"sendfile",
"sendmsg",
"set_robust_list",
"set_tid_address",
"setgid",
"setgroups",
"setitimer",
"setresgid",
"setresuid",
"setsockopt",
"setuid",
"sigaltstack",
"socket",
"socketpair",
"stat",
"statfs",
"sysinfo",
"umask",
"uname",
"unlink",
"utimensat",
"wait4",
"write",
"writev"
],
"action": "SCMP_ACT_ALLOW"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment