diff options
author | Paul Moore <paul@paul-moore.com> | 2021-11-01 10:07:44 -0600 |
---|---|---|
committer | Tom Hromatka <tom.hromatka@oracle.com> | 2021-11-01 10:08:00 -0600 |
commit | 3c2da115b5b35222afbc62f27779832d47a34786 (patch) | |
tree | 7cb67cb2dc02ab885ea501e51c6430c7d706559b /tests/05-sim-long_jumps.tests | |
parent | ee3660f91879eb82eb1885a9a5688fec245dcfbf (diff) | |
download | libseccomp-3c2da115b5b35222afbc62f27779832d47a34786.tar.gz |
tests: improve 05-sim-long_jumps to work better across arch/ABIs
This patch primarily moves the test away from abstract syscall
numbers to honest-to-goodness actual syscalls which are present on
all currently supported arch/ABIs. This change should make it easier
to support this test across different platforms now and moving
forward.
Signed-off-by: Paul Moore <paul@paul-moore.com>
Reviewed-by: Tom Hromatka <tom.hromatka@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Diffstat (limited to 'tests/05-sim-long_jumps.tests')
-rw-r--r-- | tests/05-sim-long_jumps.tests | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/tests/05-sim-long_jumps.tests b/tests/05-sim-long_jumps.tests index a2d6dd0..d1eb92c 100644 --- a/tests/05-sim-long_jumps.tests +++ b/tests/05-sim-long_jumps.tests @@ -1,30 +1,23 @@ # # libseccomp regression test automation data # -# Copyright IBM Corp. 2012 +# Copyright (c) 2012 IBM Corp. +# Copyright (c) 2021 Microsoft Corporation <paulmoore@microsoft.com> # Author: Corey Bryant <coreyb@linux.vnet.ibm.com> # test type: bpf-sim # Testname Arch Syscall Arg0 Arg1 Arg2 Arg3 Arg4 Arg5 Result -05-sim-long_jumps all,-x32 1 1 2 3 4 5 6 ALLOW -05-sim-long_jumps all,-x32 2 N N N N N N KILL -05-sim-long_jumps all,-x32 999 N N N N N N KILL -05-sim-long_jumps x86 1000 0-5 0x856B008 0x7FFFFFFE N N N ALLOW -05-sim-long_jumps x86_64 1000 0-5 0x856B008 0x7FFFFFFFFFFFFFFE N N N ALLOW -05-sim-long_jumps x86 1000 95-99 0x856B008 0x7FFFFFFE N N N ALLOW -05-sim-long_jumps x86_64 1000 95-99 0x856B008 0x7FFFFFFFFFFFFFFE N N N ALLOW -05-sim-long_jumps x86 1000 100 0x856B008 0x7FFFFFFE N N N KILL -05-sim-long_jumps x86_64 1000 100 0x856B008 0x7FFFFFFFFFFFFFFE N N N KILL -05-sim-long_jumps all,-x32 1001 N N N N N N KILL -05-sim-long_jumps all,-x32 99 1 N N N N N KILL -05-sim-long_jumps all,-x32 100-105 1 N N N N N ALLOW -05-sim-long_jumps all,-x32 195-199 1 N N N N N ALLOW -05-sim-long_jumps all,-x32 200 1 N N N N N KILL -05-sim-long_jumps all,-x32 3 N N N N N N KILL -05-sim-long_jumps all,-x32 4 1 2 3 4 5 6 ALLOW -05-sim-long_jumps all,-x32 5 N N N N N N KILL +05-sim-long_jumps all,-x32 brk 1 2 3 4 5 6 ALLOW +05-sim-long_jumps all,-x32 9999 N N N N N N KILL +05-sim-long_jumps x86 chdir 0-5 0x856B008 0x7FFFFFFE N N N ALLOW +05-sim-long_jumps x86_64 chdir 0-5 0x856B008 0x7FFFFFFFFFFFFFFE N N N ALLOW +05-sim-long_jumps x86 chdir 95-99 0x856B008 0x7FFFFFFE N N N ALLOW +05-sim-long_jumps x86_64 chdir 95-99 0x856B008 0x7FFFFFFFFFFFFFFE N N N ALLOW +05-sim-long_jumps x86 chdir 100 0x856B008 0x7FFFFFFE N N N KILL +05-sim-long_jumps x86_64 chdir 100 0x856B008 0x7FFFFFFFFFFFFFFE N N N KILL +05-sim-long_jumps all,-x32 close 1 N N N N N ALLOW test type: bpf-sim-fuzz |