Re: [PATCH 02/15] selftests/seccomp: Provide generic syscall setting macro

2020-09-15 Thread Christian Brauner
On Sat, Sep 12, 2020 at 04:08:07AM -0700, Kees Cook wrote: > In order to avoid "#ifdef"s in the main function bodies, create a new > macro, SYSCALL_NUM_SET(), where arch-specific logic can live. > > Signed-off-by: Kees Cook > --- SYSCALL_SWITCH(_regs, nr)? But looks good either way! Acked-by:

[PATCH 02/15] selftests/seccomp: Provide generic syscall setting macro

2020-09-12 Thread Kees Cook
In order to avoid "#ifdef"s in the main function bodies, create a new macro, SYSCALL_NUM_SET(), where arch-specific logic can live. Signed-off-by: Kees Cook --- tools/testing/selftests/seccomp/seccomp_bpf.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git