]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
selftests/seccomp: Convert HAVE_GETREG into ARCH_GETREG/ARCH_SETREG
authorKees Cook <keescook@chromium.org>
Sat, 12 Sep 2020 11:08:13 +0000 (04:08 -0700)
committerKees Cook <keescook@chromium.org>
Sat, 19 Sep 2020 07:59:53 +0000 (00:59 -0700)
commitfdbaa798eaf52a3f1d5d86c5bc035fe8dcc3a384
treef809c98be54dc25cfb7db41a2906749c8d3354b5
parent78f26627fd36cb74277dd562ec277aee384525a1
selftests/seccomp: Convert HAVE_GETREG into ARCH_GETREG/ARCH_SETREG

Instead of special-casing the get/set-registers routines, move the
HAVE_GETREG logic into the new ARCH_GETREG() and ARCH_SETREG() macros.

Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/lkml/20200912110820.597135-9-keescook@chromium.org
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
tools/testing/selftests/seccomp/seccomp_bpf.c