]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
selftests/seccomp: Refactor RET_ERRNO tests
authorKees Cook <keescook@chromium.org>
Wed, 2 Aug 2017 21:08:39 +0000 (14:08 -0700)
committerKees Cook <keescook@chromium.org>
Mon, 14 Aug 2017 20:46:42 +0000 (13:46 -0700)
commitf3f6e30669c048f47d51ea59df9946a91f551c4c
tree4798db471e632cf31be5da6dd546401c89b1cb9e
parent967d7ba8415139107033770a40c7ec7dd17fbcb1
selftests/seccomp: Refactor RET_ERRNO tests

This refactors the errno tests (since they all use the same pattern for
their filter) and adds a RET_DATA field ordering test.

Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Tyler Hicks <tyhicks@canonical.com>
tools/testing/selftests/seccomp/seccomp_bpf.c