]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 27 Aug 2018 14:40:05 +0000 (16:40 +0200)
commit86215687ffce550249b82be0f62dce220cc7fdd0
treee0dca2a4cf7acc54dad27664642a4a21a0bb6aea
parentad03f4ccfb73e82192c1af47be28f5cc7402666a
seccomp: add a selftest for get_metadata

BugLink: http://bugs.launchpad.net/bugs/1786352
[ Upstream commit d057dc4e35e16050befa3dda943876dab39cbf80 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
tools/testing/selftests/seccomp/seccomp_bpf.c