summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2021-11-01 10:02:32 -0600
committerTom Hromatka <tom.hromatka@oracle.com>2021-11-01 10:03:12 -0600
commit68cc5bf3d85ddedbd9a43a44389c3593b517e6c5 (patch)
tree628303a7d753daa66c2d7b6557ea3fda1eadf220 /tests
parentf046fd21e3274541021bff1f869bf2c9ef8d0b86 (diff)
downloadlibseccomp-68cc5bf3d85ddedbd9a43a44389c3593b517e6c5.tar.gz
mips: restore the 32-bit MIPS O32 ABI offset
In the process of adding and consolidating the multiplexed syscalls for MIPS I mistakenly dropped the O32 ABI offset, this patch restores the offset value. 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')
-rw-r--r--tests/38-basic-pfc_coverage.pfc28
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/38-basic-pfc_coverage.pfc b/tests/38-basic-pfc_coverage.pfc
index 450401f..c91f1a8 100644
--- a/tests/38-basic-pfc_coverage.pfc
+++ b/tests/38-basic-pfc_coverage.pfc
@@ -302,23 +302,23 @@ if ($arch == 3221225655)
action ALLOW;
# filter for arch mipsel (1073741832)
if ($arch == 1073741832)
- # filter for syscall "exit_group" (246) [priority: 65535]
- if ($syscall == 246)
+ # filter for syscall "exit_group" (4246) [priority: 65535]
+ if ($syscall == 4246)
action LOG;
- # filter for syscall "fstat" (108) [priority: 65535]
- if ($syscall == 108)
+ # filter for syscall "fstat" (4108) [priority: 65535]
+ if ($syscall == 4108)
action KILL_PROCESS;
- # filter for syscall "close" (6) [priority: 65535]
- if ($syscall == 6)
+ # filter for syscall "close" (4006) [priority: 65535]
+ if ($syscall == 4006)
action ERRNO(1);
- # filter for syscall "open" (5) [priority: 65535]
- if ($syscall == 5)
+ # filter for syscall "open" (4005) [priority: 65535]
+ if ($syscall == 4005)
action KILL;
- # filter for syscall "exit" (1) [priority: 65535]
- if ($syscall == 1)
+ # filter for syscall "exit" (4001) [priority: 65535]
+ if ($syscall == 4001)
action TRACE(1);
- # filter for syscall "write" (4) [priority: 65532]
- if ($syscall == 4)
+ # filter for syscall "write" (4004) [priority: 65532]
+ if ($syscall == 4004)
if ($a0 == 0)
else
if ($a1 > 1)
@@ -326,8 +326,8 @@ if ($arch == 1073741832)
if ($a2 >= 2)
else
action TRAP;
- # filter for syscall "read" (3) [priority: 65531]
- if ($syscall == 3)
+ # filter for syscall "read" (4003) [priority: 65531]
+ if ($syscall == 4003)
if ($a0 == 0)
if ($a1 >= 1)
if ($a2 > 2)