Skip to content

Commit

Permalink
samples/seccomp: Fix 32-bit build
Browse files Browse the repository at this point in the history
Both the .o and the actual executable need to be built with -m32 in order
to link correctly.

Reported-by: Ingo Molnar <[email protected]>
Signed-off-by: Tycho Andersen <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: James Morris <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Fixes: fec7b66 ("samples: add an example of seccomp user trap")
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
tych0 authored and Ingo Molnar committed Jan 8, 2019
1 parent 3bd6e94 commit a77d1d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions samples/seccomp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ HOSTCFLAGS_bpf-direct.o += $(MFLAG)
HOSTCFLAGS_dropper.o += $(MFLAG)
HOSTCFLAGS_bpf-helper.o += $(MFLAG)
HOSTCFLAGS_bpf-fancy.o += $(MFLAG)
HOSTCFLAGS_user-trap.o += $(MFLAG)
HOSTLDLIBS_bpf-direct += $(MFLAG)
HOSTLDLIBS_bpf-fancy += $(MFLAG)
HOSTLDLIBS_dropper += $(MFLAG)
Expand Down

0 comments on commit a77d1d1

Please sign in to comment.