summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorTycho Andersen <tycho@tycho.ws>2019-01-07 16:16:31 -0700
committerIngo Molnar <mingo@kernel.org>2019-01-08 07:45:01 +0100
commita77d1d196bc63b37d9b4d1b614884669e8e79d32 (patch)
tree9b11aa2ef88a3fd31293cb4f2470488f6be0f3d8 /samples
parent3bd6e94bec122a951d462c239b47954cf5f36e33 (diff)
downloadlinux-stable-a77d1d196bc63b37d9b4d1b614884669e8e79d32.tar.gz
linux-stable-a77d1d196bc63b37d9b4d1b614884669e8e79d32.tar.bz2
linux-stable-a77d1d196bc63b37d9b4d1b614884669e8e79d32.zip
samples/seccomp: Fix 32-bit build
Both the .o and the actual executable need to be built with -m32 in order to link correctly. Reported-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Tycho Andersen <tycho@tycho.ws> Reviewed-by: Kees Cook <keescook@chromium.org> Cc: Borislav Petkov <bp@alien8.de> Cc: James Morris <jmorris@namei.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Fixes: fec7b6690541 ("samples: add an example of seccomp user trap") Link: http://lkml.kernel.org/r/20190107231631.1849-1-tycho@tycho.ws Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'samples')
-rw-r--r--samples/seccomp/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/seccomp/Makefile b/samples/seccomp/Makefile
index 4920903c8009..fb43a814d4c0 100644
--- a/samples/seccomp/Makefile
+++ b/samples/seccomp/Makefile
@@ -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)