]> git.proxmox.com Git - mirror_qemu.git/commitdiff
virtiofsd: Seccomp: Add 'send' for syslog
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 2 Nov 2020 15:07:50 +0000 (15:07 +0000)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 2 Nov 2020 18:29:54 +0000 (18:29 +0000)
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 <dgilbert@redhat.com>
Message-Id: <20201102150750.34565-1-dgilbert@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
tools/virtiofsd/passthrough_seccomp.c

index eb9af8265fa1e959a5578b05550bd39af7e36db9..672fb72a31f642af10aaa23518e00ddfea1944a4 100644 (file)
@@ -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),
 };