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

From: Christian Brauner
Date: Mon Sep 21 2020 - 03:50:36 EST


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 happening once and in one code path.
>
> Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx>
> ---

Looks good!
Acked-by: Christian Brauner <christian.brauner@xxxxxxxxxx>