summaryrefslogtreecommitdiff
path: root/tests/15-basic-resolver.c
Commit message (Collapse)AuthorAgeFilesLines
* arch: Add 32-bit Motorola 68000 supportJohn Paul Adrian Glaubitz2023-04-251-0/+1
| | | | | | Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Acked-by: Paul Moore <paul@paul-moore.com> Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
* tests: Add 64-bit LoongArch supportXiaotian Wu2023-02-181-0/+1
| | | | | | | | | | | [xen0n: LoongArch (and a few upcoming architectures / ABIs) does not have fstat, so the fstat in 06-sim-actions is also being changed to fstatfs for uniformity across the board.] Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn> Signed-off-by: WANG Xuerui <git@xen0n.name> Acked-by: Tom Hromatka <tom.hromatka@oracle.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
* tests: various additions to improve code coveragePaul Moore2021-08-121-0/+41
| | | | | Acked-by: Tom Hromatka <tom.hromatka@oracle.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
* arch: Add RISC-V 64-bit supportAndreas Schwab2020-02-231-0/+1
| | | | | | Signed-off-by: Andreas Schwab <schwab@suse.de> [PM: minor macro shuffling in seccomp.h.in] Signed-off-by: Paul Moore <paul@paul-moore.com>
* tests: rely on __SNR_xxx instead of __NR_xxx for syscallsPaul Moore2019-11-201-3/+3
| | | | | | | | We recently changed how libseccomp handles syscall numbers that are not defined natively, but we missed test #15. Acked-by: Tom Hromatka <tom.hromatka@oracle.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
* tests: add socket and ipc tests to 15-basic-resolverPaul Moore2017-02-241-0/+24
| | | | Signed-off-by: Paul Moore <paul@paul-moore.com>
* tests: test the syscall resolver on all supported architecturesPaul Moore2017-02-231-24/+53
| | | | Signed-off-by: Paul Moore <paul@paul-moore.com>
* tests: add a test for seccomp_syscall_resolve_name_rewrite()Paul Moore2017-02-231-0/+5
| | | | Signed-off-by: Paul Moore <paul@paul-moore.com>
* tests: replace socket syscall references in 15-basic-resolverPaul Moore2016-04-191-4/+4
| | | | | | | | On 32-bit x86 the resolved socket syscall() doesn't always resolve to the __NR_socket value due to the direct wired socket syscall so replace it with the read() syscall to ensure the test doesn't fail. Signed-off-by: Paul Moore <paul@paul-moore.com>
* all: update my email addressPaul Moore2016-02-111-1/+1
| | | | | | | Employer agnostic emails make things a lot easier in the long run so make sure the paul-moore.com address is used whenever it makes sense. Signed-off-by: Paul Moore <paul@paul-moore.com>
* tests: fixed leak in basic-resolverBrian Cain2015-03-131-10/+21
| | | | | | | | | seccomp_syscall_resolve_num_arch() returns a string from strdup() that needs to be reaped. I found this bug using clang and address-sanitizer. Signed-off-by: Brian Cain <brian.cain@gmail.com> Signed-off-by: Paul Moore <pmoore@redhat.com>
* tests: correctly return an error if seccomp_init() failsPaul Moore2014-05-011-0/+1
| | | | Signed-off-by: Paul Moore <pmoore@redhat.com>
* tests: rename the tests to make it clear which are simulator/basic/live basedPaul Moore2013-02-071-0/+59
This patch only renames files, it makes not changes to the content. Signed-off-by: Paul Moore <pmoore@redhat.com>