OSDN Git Service

selftests/seccomp: Prepare for exclusive seccomp flags
authorKees Cook <keescook@chromium.org>
Wed, 24 Apr 2019 16:32:55 +0000 (09:32 -0700)
committerKees Cook <keescook@chromium.org>
Thu, 25 Apr 2019 22:55:48 +0000 (15:55 -0700)
commit4ee0776760af03f181e6b80baf5fb1cc1a980f50
tree382c4962edbab041134d37a906b698213790787b
parent8c2ffd9174779014c3fe1f96d9dc3641d9175f00
selftests/seccomp: Prepare for exclusive seccomp flags

Some seccomp flags will become exclusive, so the selftest needs to
be adjusted to mask those out and test them individually for the "all
flags" tests.

Cc: stable@vger.kernel.org # v5.0+
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Tycho Andersen <tycho@tycho.ws>
Acked-by: James Morris <jamorris@linux.microsoft.com>
tools/testing/selftests/seccomp/seccomp_bpf.c