[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] fixed compilation bug on i386 due to previous fix



commit 7cf1b9cc33ab2ba13d84e08105699dd1f39dae1d
Author: Cristian Toader <cristian.matei.toader@xxxxxxxxx>
Date:   Thu Sep 12 15:38:14 2013 +0300

    fixed compilation bug on i386 due to previous fix
---
 src/common/sandbox.c |   18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index db2ad1d..b9ec99e 100644
--- a/src/common/sandbox.c
+++ b/src/common/sandbox.c
@@ -125,6 +125,15 @@ static int filter_nopar_gen[] = {
     SCMP_SYS(stat64),
 #endif
 
+    /*
+     * These socket 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
+
     // socket syscalls
     SCMP_SYS(bind),
     SCMP_SYS(connect),
@@ -133,15 +142,6 @@ static int filter_nopar_gen[] = {
     SCMP_SYS(recvfrom),
     SCMP_SYS(sendto),
     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
 };
 
 /**



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits