aboutsummaryrefslogtreecommitdiffstats
path: root/seccomp/seccomp_filter.c
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-12-05 20:49:04 +0000
committerterminaldweller <thabogre@gmail.com>2022-12-05 20:49:04 +0000
commit2077fba8a11ab148c229d93842a9cc6b74f649b9 (patch)
tree4449a2b077ceae4a3c888726cd4e45ae6b7cd41b /seccomp/seccomp_filter.c
parentupdate (diff)
downloadscripts-2077fba8a11ab148c229d93842a9cc6b74f649b9.tar.gz
scripts-2077fba8a11ab148c229d93842a9cc6b74f649b9.zip
update
Diffstat (limited to 'seccomp/seccomp_filter.c')
-rw-r--r--seccomp/seccomp_filter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/seccomp/seccomp_filter.c b/seccomp/seccomp_filter.c
index 89ea917..1d3f2fa 100644
--- a/seccomp/seccomp_filter.c
+++ b/seccomp/seccomp_filter.c
@@ -8,6 +8,8 @@
#include <string.h>
#include <unistd.h>
+// https://blog.mnus.de/2020/05/sandboxing-soldatserver-with-bubblewrap-and-seccomp/
+
void log_all_syscalls(void) {
scmp_filter_ctx ctx = seccomp_init(SCMP_ACT_LOG);
seccomp_arch_add(ctx, SCMP_ARCH_X86_64);