Re: [PATCH v2 2/4] selftests/seccomp: Allow syscall nr and ret value to be set separately

2020-09-21 Thread Christian Brauner
On Sat, Sep 19, 2020 at 01:06:35AM -0700, Kees Cook wrote: > 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 happen

[PATCH v2 2/4] selftests/seccomp: Allow syscall nr and ret value to be set separately

2020-09-19 Thread Kees Cook
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. Signed-off-by: Kees Cook --- tool