]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
sys_linux: allow recv and send in seccomp filter
authorLeigh Brown <leigh@solinno.co.uk>
Wed, 13 Mar 2019 16:56:08 +0000 (17:56 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 14 Mar 2019 08:07:15 +0000 (09:07 +0100)
sys_linux.c

index ebbeaaeafd3edd5e73220bea3eff507e82b937fa..e71dcf8854ab9f4a9c23ecc95487ca63d2e33aa5 100644 (file)
@@ -504,8 +504,8 @@ SYS_Linux_EnableSystemCallFilter(int level)
     SCMP_SYS(stat64), SCMP_SYS(statfs), SCMP_SYS(statfs64), SCMP_SYS(unlink),
     /* Socket */
     SCMP_SYS(bind), SCMP_SYS(connect), SCMP_SYS(getsockname), SCMP_SYS(getsockopt),
-    SCMP_SYS(recvfrom), SCMP_SYS(recvmmsg), SCMP_SYS(recvmsg),
-    SCMP_SYS(sendmmsg), SCMP_SYS(sendmsg), SCMP_SYS(sendto),
+    SCMP_SYS(recv), SCMP_SYS(recvfrom), SCMP_SYS(recvmmsg), SCMP_SYS(recvmsg),
+    SCMP_SYS(send), SCMP_SYS(sendmmsg), SCMP_SYS(sendmsg), SCMP_SYS(sendto),
     /* TODO: check socketcall arguments */
     SCMP_SYS(socketcall),
     /* General I/O */