aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-02-08 12:46:46 +0000
committerOmar Polo <op@omarpolo.com>2021-02-08 12:46:46 +0000
commitdf58efff26529acd6a5675d3b4044d494b138397 (patch)
tree40fd2b5cb4ac04c19533597efa79d2701e94627c /server.c
parentd090dc8491682f30c49da381498c283c61f2e37b (diff)
fix seccomp for the new event loop
add/remove syscalls from the BPF filter and move sandbox() after libevent initialisation
Diffstat (limited to 'server.c')
-rw-r--r--server.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/server.c b/server.c
index daeeb93..d7e5108 100644
--- a/server.c
+++ b/server.c
@@ -1059,5 +1059,7 @@ loop(struct tls *ctx, int sock4, int sock6)
server.ctx = ctx;
+ sandbox();
event_dispatch();
+ _exit(0);
}