From: Dr. David Alan Gilbert Date: Mon, 2 Nov 2020 15:07:50 +0000 (+0000) Subject: virtiofsd: Seccomp: Add 'send' for syslog X-Git-Tag: v5.2.0-rc0~6^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dcaac9f124833e62e720d0733aa53453f438b7d7;p=thirdparty%2Fqemu.git virtiofsd: Seccomp: Add 'send' for syslog On ppc, and some other archs, it looks like syslog ends up using 'send' rather than 'sendto'. Reference: https://github.com/kata-containers/kata-containers/issues/1050 Reported-by: amulmek1@in.ibm.com Signed-off-by: Dr. David Alan Gilbert Message-Id: <20201102150750.34565-1-dgilbert@redhat.com> Reviewed-by: Daniel P. Berrangé Signed-off-by: Dr. David Alan Gilbert --- diff --git a/tools/virtiofsd/passthrough_seccomp.c b/tools/virtiofsd/passthrough_seccomp.c index eb9af8265fa..672fb72a31f 100644 --- a/tools/virtiofsd/passthrough_seccomp.c +++ b/tools/virtiofsd/passthrough_seccomp.c @@ -118,6 +118,7 @@ static const int syscall_whitelist[] = { /* Syscalls used when --syslog is enabled */ static const int syscall_whitelist_syslog[] = { + SCMP_SYS(send), SCMP_SYS(sendto), };