commit d4ba6f3485e14cc50919a5c9ad6306510f78e796
parent 9d7ef805f0ba930a4ff16d2abb0072db15945d96
Author: Joris Vink <joris@coders.se>
Date: Thu, 26 Sep 2019 16:13:42 +0200
allow more net related syscalls for python.
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/python.c b/src/python.c
@@ -206,11 +206,17 @@ static struct sock_filter filter_python[] = {
KORE_SYSCALL_ALLOW(execve),
/* Socket related. */
+ KORE_SYSCALL_ALLOW(bind),
+ KORE_SYSCALL_ALLOW(listen),
KORE_SYSCALL_ALLOW(sendto),
KORE_SYSCALL_ALLOW(recvfrom),
KORE_SYSCALL_ALLOW(getsockopt),
KORE_SYSCALL_ALLOW(setsockopt),
KORE_SYSCALL_ALLOW(getsockname),
+
+ KORE_SYSCALL_ALLOW_ARG(socket, 0, AF_INET),
+ KORE_SYSCALL_ALLOW_ARG(socket, 0, AF_INET6),
+ KORE_SYSCALL_ALLOW_ARG(socket, 0, AF_UNIX),
};
#endif