Re: [PATCH v2] seccomp: Stub for !HAVE_ARCH_SECCOMP_FILTER

From: Kees Cook
Date: Tue Oct 22 2024 - 15:37:35 EST


On Tue, 22 Oct 2024 15:41:34 +0200, Linus Walleij wrote:
> If we have CONFIG_SECCOMP but not CONFIG_HAVE_ARCH_SECCOMP_FILTER
> we get a compilation error:
>
> ../kernel/entry/common.c: In function 'syscall_trace_enter':
> ../kernel/entry/common.c:55:23: error: implicit declaration of function '__secure_computing' [-Werror=implicit-function-declaration]
> 55 | ret = __secure_computing(NULL);
> | ^~~~~~~~~~~~~~~~~~
>
> [...]

Applied to for-next/seccomp, thanks!

[1/1] seccomp: Stub for !HAVE_ARCH_SECCOMP_FILTER
https://git.kernel.org/kees/c/8cf8dfceebda

Take care,

--
Kees Cook