From 68cc5bf3d85ddedbd9a43a44389c3593b517e6c5 Mon Sep 17 00:00:00 2001 From: Paul Moore Date: Mon, 1 Nov 2021 10:02:32 -0600 Subject: 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 Reviewed-by: Tom Hromatka Signed-off-by: Tom Hromatka --- tests/38-basic-pfc_coverage.pfc | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'tests') 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) -- cgit v1.2.1