From: Cristian Toader Date: Thu, 12 Sep 2013 12:30:28 +0000 (+0300) Subject: bug fix: syscalls send and recv not supported for x86_64 with libseccomp 1.0.1 X-Git-Tag: tor-0.2.5.1-alpha~39^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2836c8780373eff011ba42620d5ab48f342cf78;p=thirdparty%2Ftor.git bug fix: syscalls send and recv not supported for x86_64 with libseccomp 1.0.1 --- diff --git a/src/common/sandbox.c b/src/common/sandbox.c index dc8885e185..db2ad1d6ff 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 }; /**