diff options
author | Oleg Nesterov <oleg@redhat.com> | 2025-01-28 16:03:00 +0100 |
---|---|---|
committer | Kees Cook <kees@kernel.org> | 2025-02-10 09:26:22 -0800 |
commit | 0fe1ebf3f056d99ef4835dc5d88b9c3bb12e44c1 (patch) | |
tree | 1c616f0246b94b2c015ac911cb4a0061724f6b81 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 18f7686a1ce6b72e0ac61aa16f167eb931185cf1 (diff) |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions