Re: [PATCH v2 3/4] selftests/seccomp: powerpc: Set syscall return during ptrace syscall exit

2020-09-21 Thread Christian Brauner
On Sat, Sep 19, 2020 at 01:06:36AM -0700, Kees Cook wrote: > Some archs (like powerpc) only support changing the return code during > syscall exit when ptrace is used. Test entry vs exit phases for which > portions of the syscall number and return values need to be set at which > different phases.

[PATCH v2 3/4] selftests/seccomp: powerpc: Set syscall return during ptrace syscall exit

2020-09-19 Thread Kees Cook
Some archs (like powerpc) only support changing the return code during syscall exit when ptrace is used. Test entry vs exit phases for which portions of the syscall number and return values need to be set at which different phases. For non-powerpc, all changes are made during ptrace syscall entry,