diff options
author | Paul Moore <paul@paul-moore.com> | 2016-02-09 07:21:33 -0500 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2016-02-09 08:32:30 -0500 |
commit | d76fc6a7aef6855d0a93a303f6c19726390f70b7 (patch) | |
tree | 05a3afa0874588a32b398c0bbafb934e8ef15394 /tests/30-sim-socket_syscalls.tests | |
parent | 19ef09ba70aea96863cbeee4fbe5e5253ae07424 (diff) | |
download | libseccomp-d76fc6a7aef6855d0a93a303f6c19726390f70b7.tar.gz |
tests: add a test for the different types of socket syscallsworking-pcmoore
We need to test that we are generating filters that can handle both
the legacy multiplexed socket syscalls as well as the new direct
wired socket syscalls.
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tests/30-sim-socket_syscalls.tests')
-rw-r--r-- | tests/30-sim-socket_syscalls.tests | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/30-sim-socket_syscalls.tests b/tests/30-sim-socket_syscalls.tests new file mode 100644 index 0000000..e55e353 --- /dev/null +++ b/tests/30-sim-socket_syscalls.tests @@ -0,0 +1,30 @@ +# +# libseccomp regression test automation data +# +# Copyright (c) 2016 Red Hat <pmoore@redhat.com> +# Author: Paul Moore <pmoore@redhat.com> +# + +test type: bpf-sim + +# Testname Arch Syscall Arg0 Arg1 Arg2 Arg3 Arg4 Arg5 Result +30-sim-socket_syscalls +x86 socketcall 1 N N N N N ALLOW +30-sim-socket_syscalls +x86 socketcall 3 N N N N N ALLOW +30-sim-socket_syscalls +x86 socketcall 5 N N N N N ALLOW +30-sim-socket_syscalls +x86 socketcall 13 N N N N N ALLOW +30-sim-socket_syscalls +x86 359 0 1 2 N N N ALLOW +30-sim-socket_syscalls +x86 362 0 1 2 N N N ALLOW +30-sim-socket_syscalls +x86 364 0 1 2 N N N ALLOW +30-sim-socket_syscalls +x86 373 0 1 2 N N N ALLOW +30-sim-socket_syscalls +x86 accept 5 N N N N N ALLOW +30-sim-socket_syscalls +x86 accept 0 1 2 N N N KILL +30-sim-socket_syscalls +x86 accept4 0 1 2 N N N ALLOW +30-sim-socket_syscalls +x86_64 socket 0 1 2 N N N ALLOW +30-sim-socket_syscalls +x86_64 connect 0 1 2 N N N ALLOW +30-sim-socket_syscalls +x86_64 accept4 0 1 2 N N N ALLOW +30-sim-socket_syscalls +x86_64 shutdown 0 1 2 N N N ALLOW + +test type: bpf-valgrind + +# Testname +30-sim-socket_syscalls |