From f3019b3b3221bbe795d56a433e889f8a9d39c87d Mon Sep 17 00:00:00 2001 From: Jan Friedli Date: Sun, 12 Apr 2020 15:44:53 +0200 Subject: [PATCH] generated a seccomp profile --- README.md | 2 +- config/seccomp.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 config/seccomp.json diff --git a/README.md b/README.md index 5ed5859..9d59bef 100644 --- a/README.md +++ b/README.md @@ -202,7 +202,7 @@ This does mount the upload folder as tmpfs and servers the app on `localhost:818 ##### Podman Build: `podman build -f Dockerfile.production -t matweb-podman .` -Run: `podman run -ti -p8181:8080 --read-only --tmpfs /tmp --tmpfs /run/uwsgi --tmpfs=/app/upload --security-opt=no-new-privileges matweb-podman:latest` +Run: `podman run -ti -p8181:8080 --read-only --tmpfs /tmp --tmpfs /run/uwsgi --tmpfs=/app/upload --security-opt=no-new-privileges,seccomp=./config/seccomp.json matweb-podman:latest` # Configuration diff --git a/config/seccomp.json b/config/seccomp.json new file mode 100644 index 0000000..3c07a24 --- /dev/null +++ b/config/seccomp.json @@ -0,0 +1 @@ +{"defaultAction":"SCMP_ACT_ERRNO","syscalls":[{"names":["accept4","access","arch_prctl","bind","brk","capget","capset","chdir","chmod","clone","close","connect","dup","dup2","epoll_create","epoll_ctl","epoll_pwait","epoll_wait","eventfd2","execve","exit_group","fchown","fcntl","fstat","fstatfs","futex","getcwd","getdents64","getegid","geteuid","getgid","getpid","getppid","getrandom","getsockname","getsockopt","gettid","getuid","ioctl","kill","listen","lseek","lstat","mkdir","mmap","mprotect","mremap","munmap","nanosleep","newfstatat","openat","pipe2","poll","prctl","pread64","prlimit64","pwrite64","read","readlink","readv","recvfrom","recvmsg","rename","rmdir","rt_sigaction","rt_sigprocmask","rt_sigreturn","rt_sigsuspend","seccomp","sendfile","sendmsg","set_robust_list","set_tid_address","setgid","setgroups","setsid","setsockopt","setuid","sigaltstack","socket","socketpair","stat","statfs","sysinfo","tgkill","umask","uname","unlink","unlinkat","wait4","write","writev"],"action":"SCMP_ACT_ALLOW","args":[],"comment":"","includes":{},"excludes":{}},{"names":["ftruncate","pwritev","sched_yield"],"action":"SCMP_ACT_ALLOW","args":[],"comment":"","includes":{},"excludes":{}}]} \ No newline at end of file