diff options
author | Kees Cook <keescook@chromium.org> | 2020-09-19 10:21:34 +0300 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2020-10-08 23:16:27 +0300 |
commit | bef71f86b64de8b2eb5b2f26e1cbd7735e3551da (patch) | |
tree | 5466982802313c1114d5b48413821c28d9423174 /lib/siphash.c | |
parent | 71c87fbe720038007543abff7540ef0376c519f5 (diff) | |
download | linux-bef71f86b64de8b2eb5b2f26e1cbd7735e3551da.tar.xz |
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: Christian Brauner <christian.brauner@ubuntu.com>
Link: https://lore.kernel.org/lkml/20200921075031.j4gruygeugkp2zwd@wittgenstein/
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'lib/siphash.c')
0 files changed, 0 insertions, 0 deletions