From 783847e64953495e7225ed89b1dfccefb14082bf Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 29 Mar 2016 07:13:14 -0400 Subject: libsandbox: fix x86 tracing when schizo is active 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 --- libsandbox/trace/linux/i386.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- cgit v1.2.3-65-gdbad