Skip to content
Commit bef71f86 authored by Kees Cook's avatar Kees Cook
Browse files

selftests/seccomp: Allow syscall nr and ret value to be set separately



In preparation for setting syscall nr and ret values separately, refactor
the helpers to take a pointer to a value, so that a NULL can indicate
"do not change this respective value". This is done to keep the regset
read/write happening once and in one code path.

Acked-by: default avatarChristian Brauner <christian.brauner@ubuntu.com>
Link: https://lore.kernel.org/lkml/20200921075031.j4gruygeugkp2zwd@wittgenstein/


Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent 71c87fbe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment