]> 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)
commit81e79cf148014dc6f92b9ec8393c07280b8b26bf
tree9b11aa2ef88a3fd31293cb4f2470488f6be0f3d8
parentdace93f57c485bef5aa24d458037651f2b1d33db
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: 6e0f71d6aec8 ("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