]> git.baikalelectronics.ru Git - kernel.git/commit
samples/seccomp: Fix 32-bit build
authorTycho Andersen <tycho@tycho.ws>
Mon, 7 Jan 2019 23:16:31 +0000 (16:16 -0700)
committerIngo Molnar <mingo@kernel.org>
Tue, 8 Jan 2019 06:45:01 +0000 (07:45 +0100)
commit2f72027e7d872085966fcea338433b6a04425dde
tree9b11aa2ef88a3fd31293cb4f2470488f6be0f3d8
parent7f77c909bf011d452fec1332b07367de0632790d
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: e4265eef6405 ("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>
samples/seccomp/Makefile