Преглед на файлове

fixed compilation bug on i386 due to previous fix

Cristian Toader преди 12 години
родител
ревизия
7cf1b9cc33
променени са 1 файла, в които са добавени 9 реда и са изтрити 9 реда
  1. 9 9
      src/common/sandbox.c

+ 9 - 9
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
 };
 
 /**