Move code away from libminijail.c.

The file has over 2000 lines. Move code to other files as it makes
sense.

Bug: 30662698
Change-Id: Iad3c4a5b2327a4c6956a837a08eb880c7edd7b03
diff --git a/syscall_filter.c b/syscall_filter.c
index b8ce461..b0dae77 100644
--- a/syscall_filter.c
+++ b/syscall_filter.c
@@ -17,6 +17,21 @@
 #define ONE_INSTR	1
 #define TWO_INSTRS	2
 
+int seccomp_can_softfail()
+{
+#if SECCOMP_SOFTFAIL
+	if (is_android()) {
+		if (kernel_lessthan_3_8())
+			return 1;
+		else
+			return 0;
+	} else {
+		return 1;
+	}
+#endif
+	return 0;
+}
+
 int str_to_op(const char *op_str)
 {
 	if (!strcmp(op_str, "==")) {