aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCristian Toader <cristian.matei.toader@gmail.com>2013-09-12 15:30:28 +0300
committerCristian Toader <cristian.matei.toader@gmail.com>2013-09-12 15:30:28 +0300
commitd2836c8780373eff011ba42620d5ab48f342cf78 (patch)
tree993191e1352f74be1652d61e5a35f32d80450d3a /src
parent0a3d1685ae7f7dd62b829466e8abae75a17a2482 (diff)
downloadtor-d2836c8780373eff011ba42620d5ab48f342cf78.tar
tor-d2836c8780373eff011ba42620d5ab48f342cf78.tar.gz
bug fix: syscalls send and recv not supported for x86_64 with libseccomp 1.0.1
Diffstat (limited to 'src')
-rw-r--r--src/common/sandbox.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index dc8885e18..db2ad1d6f 100644
--- a/src/common/sandbox.c
+++ b/src/common/sandbox.c
@@ -129,12 +129,19 @@ static int filter_nopar_gen[] = {
SCMP_SYS(bind),
SCMP_SYS(connect),
SCMP_SYS(getsockname),
- SCMP_SYS(recv),
SCMP_SYS(recvmsg),
SCMP_SYS(recvfrom),
SCMP_SYS(sendto),
- SCMP_SYS(send),
SCMP_SYS(unlink)
+
+ /*
+ * These syscalls are not required on x86_64 and not supported with
+ * some libseccomp versions (eg: 1.0.1)
+ */
+#if defined(__i386)
+ SCMP_SYS(recv),
+ SCMP_SYS(send),
+#endif
};
/**