linux/tools/testing/selftests/seccomp
Kees Cook f04cf78bbf selftests/seccomp: Remove SYSCALL_NUM_RET_SHARE_REG in favor of SYSCALL_RET_SET
Instead of special-casing the specific case of shared registers, create
a default SYSCALL_RET_SET() macro (mirroring SYSCALL_NUM_SET()), that
writes to the SYSCALL_RET register. For architectures that can't set the
return value (for whatever reason), they can define SYSCALL_RET_SET()
without an associated SYSCALL_RET() macro. This also paves the way for
architectures that need to do special things to set the return value
(e.g. powerpc).

Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/lkml/20200912110820.597135-12-keescook@chromium.org
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
2020-09-19 01:00:03 -07:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
config selftests/seccomp: Add SKIPs for failed unshare() 2020-07-10 16:01:45 -07:00
Makefile selftests: Fix seccomp to support relocatable build (O=objdir) 2020-03-26 15:28:19 -06:00
seccomp_benchmark.c selftests/seccomp: Improve calibration loop 2020-07-10 16:01:52 -07:00
seccomp_bpf.c selftests/seccomp: Remove SYSCALL_NUM_RET_SHARE_REG in favor of SYSCALL_RET_SET 2020-09-19 01:00:03 -07:00
settings selftests/seccomp: use 90s as timeout 2020-07-10 16:01:52 -07:00