Files
linux/arch/mips/kernel
Oleg Nesterov 0fe1ebf3f0 seccomp/mips: change syscall_trace_enter() to use secure_computing()
arch/mips/Kconfig selects HAVE_ARCH_SECCOMP_FILTER so syscall_trace_enter()
can just use __secure_computing(NULL) and rely on populate_seccomp_data(sd)
and "sd == NULL" checks in __secure_computing(sd) paths.

With the change above syscall_trace_enter() can just use secure_computing()
and avoid #ifdef + test_thread_flag(TIF_SECCOMP). CONFIG_GENERIC_ENTRY is
not defined, so test_syscall_work(SECCOMP) will check TIF_SECCOMP.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Reviewed-by: Kees Cook <kees@kernel.org>
Link: https://lore.kernel.org/r/20250128150300.GA15318@redhat.com
Signed-off-by: Kees Cook <kees@kernel.org>
2025-02-10 09:26:22 -08:00
..
2021-04-07 16:11:05 +02:00
2024-10-23 18:10:24 +02:00
2022-03-01 10:07:22 +01:00
2025-01-11 12:32:12 +01:00
2022-03-01 10:07:22 +01:00
2021-02-15 12:23:54 +01:00
2024-01-08 10:39:12 +01:00
2023-12-10 17:21:38 -08:00
2024-02-20 12:41:52 +01:00
2024-01-08 10:39:12 +01:00
2022-05-19 19:30:31 +02:00
2024-03-07 17:18:50 +01:00
2023-12-10 17:21:38 -08:00
2023-12-10 17:21:38 -08:00
2023-06-09 10:34:14 +02:00
2024-09-08 16:01:10 +02:00
2023-12-10 17:21:38 -08:00
2024-01-08 10:39:12 +01:00