Files
linux-stable-mirror/include/linux
Linus Walleij 8cf8dfceeb seccomp: Stub for !HAVE_ARCH_SECCOMP_FILTER
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);
      |                       ^~~~~~~~~~~~~~~~~~

This is because generic entry calls __secure_computing()
unconditionally.

Provide the needed stub similar to how current ARM does
this by calling secure_computing_strict() in the absence
of secure_computing(). This is similar to what is done for
ARM in arch/arm/kernel/ptrace.c.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20241022-seccomp-compile-error-v2-1-c9f08a4f8ebb@linaro.org
Signed-off-by: Kees Cook <kees@kernel.org>
2024-10-22 12:35:14 -07:00
..
2024-09-09 16:39:18 -07:00
2024-10-01 17:01:40 +02:00
2024-09-27 08:18:43 -07:00
2024-09-09 16:39:05 -07:00
2024-09-20 18:28:26 +03:00
2024-09-09 16:39:04 -07:00
2024-09-23 15:03:30 -04:00
2024-09-23 15:03:30 -04:00
2024-09-23 15:03:30 -04:00
2024-09-19 14:25:32 -05:00
2024-09-19 14:25:34 -05:00
2024-09-17 01:06:59 -07:00
2024-09-11 20:44:31 -07:00
2024-09-11 20:44:32 -07:00
2024-09-22 11:19:35 -07:00
2024-09-12 12:20:39 +02:00
2024-09-09 16:39:04 -07:00