diff options
author | Kees Cook <keescook@chromium.org> | 2019-01-25 10:33:59 -0800 |
---|---|---|
committer | Shuah Khan <shuah@kernel.org> | 2019-01-25 15:13:35 -0700 |
commit | ed5f13261cb65b02c611ae9971677f33581d4286 (patch) | |
tree | 5865aa0d86940f670ad69d6cb87e1351787522a2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 7e35a5940fab59eeccb9162eb2389342e0a87e53 (diff) |
selftests/seccomp: Enhance per-arch ptrace syscall skip tests
Passing EPERM during syscall skipping was confusing since the test wasn't
actually exercising the errno evaluation -- it was just passing a literal
"1" (EPERM). Instead, expand the tests to check both direct value returns
(positive, 45000 in this case), and errno values (negative, -ESRCH in this
case) to check both fake success and fake failure during syscall skipping.
Reported-by: Colin Ian King <colin.king@canonical.com>
Fixes: a33b2d0359a0 ("selftests/seccomp: Add tests for basic ptrace actions")
Cc: stable@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <shuah@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions