aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-03-29 07:13:14 -0400
committerMike Frysinger <vapier@gentoo.org>2016-03-29 07:13:14 -0400
commit783847e64953495e7225ed89b1dfccefb14082bf (patch)
tree5f5896eea2c229bb26d773a788fd401e7f24c3e2
parenttests: make all shell scripts executable (diff)
downloadsandbox-783847e64953495e7225ed89b1dfccefb14082bf.tar.gz
sandbox-783847e64953495e7225ed89b1dfccefb14082bf.tar.bz2
sandbox-783847e64953495e7225ed89b1dfccefb14082bf.zip
libsandbox: fix x86 tracing when schizo is activev2.11
Commit 48520a35697aa39bed046b9668a3e3e5f8a8ba93 fixed the configure logic, but the build would fail to link for x86 systems as the syscall table was not actually set up. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--libsandbox/trace/linux/i386.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libsandbox/trace/linux/i386.c b/libsandbox/trace/linux/i386.c
index d7b9eaa..f9476aa 100644
--- a/libsandbox/trace/linux/i386.c
+++ b/libsandbox/trace/linux/i386.c
@@ -8,6 +8,16 @@ static bool _trace_possible(const void *data)
(ehdr->e_machine == EM_386);
}
+#ifdef SB_SCHIZO
+static const struct syscall_entry syscall_table[] = {
+#define S(s) { SB_SYS_x86_##s, SB_NR_##s, #s },
+#include "trace_syscalls_x86.h"
+#undef S
+ { SB_NR_UNDEF, SB_NR_UNDEF, NULL },
+};
+# define trace_check_personality(regs) syscall_table
+#endif
+
#define trace_reg_sysnum orig_eax
#define trace_reg_ret eax