summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hromatka <tom.hromatka@oracle.com>2020-03-23 13:09:26 -0600
committerPaul Moore <paul@paul-moore.com>2020-03-27 18:16:25 -0400
commit18720a56237e8961f9310fca78b00e4219af3e83 (patch)
tree192a3ce8f7c1403ad6fb93cccfd469d23b1bb5d5
parent5abc3b1284faa7e3e63b6efed5300572ac0723ce (diff)
downloadlibseccomp-18720a56237e8961f9310fca78b00e4219af3e83.tar.gz
s390x: Add several syscalls to the munge functions
The following syscalls were missing from the s390x munge functions - s390x_syscall_resolve_name_munge() and s390x_syscall_resolve_num_munge(): msgctl, msgget, msgrcv, msgsnd, semctl, semget, and semtimedop Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
-rw-r--r--src/arch-s390x.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/arch-s390x.c b/src/arch-s390x.c
index c0d9fba..45d67ec 100644
--- a/src/arch-s390x.c
+++ b/src/arch-s390x.c
@@ -44,6 +44,14 @@ int s390x_syscall_resolve_name_munge(const char *name)
return __PNR_getsockopt;
else if (strcmp(name, "listen") == 0)
return __PNR_listen;
+ else if (strcmp(name, "msgctl") == 0)
+ return __PNR_msgctl;
+ else if (strcmp(name, "msgget") == 0)
+ return __PNR_msgget;
+ else if (strcmp(name, "msgrcv") == 0)
+ return __PNR_msgrcv;
+ else if (strcmp(name, "msgsnd") == 0)
+ return __PNR_msgsnd;
else if (strcmp(name, "recv") == 0)
return __PNR_recv;
else if (strcmp(name, "recvfrom") == 0)
@@ -52,6 +60,12 @@ int s390x_syscall_resolve_name_munge(const char *name)
return __PNR_recvmsg;
else if (strcmp(name, "recvmmsg") == 0)
return __PNR_recvmmsg;
+ else if (strcmp(name, "semctl") == 0)
+ return __PNR_semctl;
+ else if (strcmp(name, "semget") == 0)
+ return __PNR_semget;
+ else if (strcmp(name, "semtimedop") == 0)
+ return __PNR_semtimedop;
else if (strcmp(name, "send") == 0)
return __PNR_send;
else if (strcmp(name, "sendmsg") == 0)
@@ -107,6 +121,14 @@ const char *s390x_syscall_resolve_num_munge(int num)
return "getsockopt";
else if (num == __PNR_listen)
return "listen";
+ else if (num == __PNR_msgctl)
+ return "msgctl";
+ else if (num == __PNR_msgget)
+ return "msgget";
+ else if (num == __PNR_msgrcv)
+ return "msgrcv";
+ else if (num == __PNR_msgsnd)
+ return "msgsnd";
else if (num == __PNR_recv)
return "recv";
else if (num == __PNR_recvfrom)
@@ -115,6 +137,12 @@ const char *s390x_syscall_resolve_num_munge(int num)
return "recvmsg";
else if (num == __PNR_recvmmsg)
return "recvmmsg";
+ else if (num == __PNR_semctl)
+ return "semctl";
+ else if (num == __PNR_semget)
+ return "semget";
+ else if (num == __PNR_semtimedop)
+ return "semtimedop";
else if (num == __PNR_send)
return "send";
else if (num == __PNR_sendmsg)