]> git.baikalelectronics.ru Git - kernel.git/commit
seccomp: add a selftest for get_metadata
authorTycho Andersen <tycho@tycho.ws>
Wed, 21 Feb 2018 02:47:47 +0000 (19:47 -0700)
committerKees Cook <keescook@chromium.org>
Thu, 22 Feb 2018 00:56:03 +0000 (16:56 -0800)
commitc37bef240b3b0d0a7844954f1910c2a4b823265c
treea283c0c7e3bffb81a32bc061c21fb1c0fc80e0f1
parent3826993af5d32b3389d4035ed862941d7fb496f0
seccomp: add a selftest for get_metadata

Let's test that we get the flags correctly, and that we preserve the filter
index across the ptrace(PTRACE_SECCOMP_GET_METADATA) correctly.

Signed-off-by: Tycho Andersen <tycho@tycho.ws>
CC: Kees Cook <keescook@chromium.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
tools/testing/selftests/seccomp/seccomp_bpf.c