aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael McVady <femtonaut@gmail.com>2022-03-10 17:41:15 -0500
committerMichael McVady <femtonaut@gmail.com>2022-03-10 17:44:23 -0500
commitea8676066c1b87565149222ebe1a17c6905aa7d7 (patch)
tree59c19209c2daa915cc1636974e924ebbf669abff /src
parent27384b1735cc558614ccfc3b9cac89bcd5869b4d (diff)
seccomp
Diffstat (limited to 'src')
-rw-r--r--src/clog.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/clog.c b/src/clog.c
index 7bf6012..b62b4f4 100644
--- a/src/clog.c
+++ b/src/clog.c
@@ -1,6 +1,7 @@
#include <kore/kore.h>
#include <kore/http.h>
#include <kore/pgsql.h>
+#include <kore/seccomp.h>
#include "assets.h"
@@ -11,6 +12,10 @@
#include "../lib/md4c/src/md4c-html.h"
#include "../lib/md4c/src/md4c-html.c"
+KORE_SECCOMP_FILTER("app",
+ KORE_SYSCALL_ALLOW(getdents64)
+)
+
int init(int);
int post(struct http_request *);
int posts(struct http_request *);