22 lines
464 B
Diff
22 lines
464 B
Diff
--- file.c
|
|
+++ file.c
|
|
@@ -19,6 +19,7 @@
|
|
#include <sys/types.h>
|
|
#include <sys/mman.h>
|
|
#include <sys/stat.h>
|
|
+#include <sys/sysmacros.h>
|
|
|
|
#include <err.h>
|
|
#include <errno.h>
|
|
--- seccomp-sandbox.c
|
|
+++ seccomp-sandbox.c
|
|
@@ -109,6 +109,9 @@ static const struct sock_filter filt_insns[] = {
|
|
#ifdef __NR_write
|
|
SC_ALLOW(__NR_write),
|
|
#endif
|
|
+#ifdef __NR_writev
|
|
+ SC_ALLOW(__NR_writev),
|
|
+#endif
|
|
|
|
/* Default deny. */
|
|
BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_KILL),
|