From fca46fd00ed76481a39717a2a0943d1255843f76 Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Wed, 12 Aug 2020 15:46:52 +0200 Subject: [PATCH] virtio-devices: net: Add dup syscall to seccomp filters The seccomp filters specific to the virtio-net threads must contain dup() syscall now that we ported the epoll code to the EpollHelper. Signed-off-by: Sebastien Boeuf --- virtio-devices/src/seccomp_filters.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/virtio-devices/src/seccomp_filters.rs b/virtio-devices/src/seccomp_filters.rs index 79c5c9fcf..81d837070 100644 --- a/virtio-devices/src/seccomp_filters.rs +++ b/virtio-devices/src/seccomp_filters.rs @@ -84,6 +84,7 @@ fn virtio_console_thread_rules() -> Result, Error> { fn virtio_net_thread_rules() -> Result, Error> { Ok(vec![ allow_syscall(libc::SYS_close), + allow_syscall(libc::SYS_dup), allow_syscall(libc::SYS_epoll_create1), allow_syscall(libc::SYS_epoll_ctl), allow_syscall(libc::SYS_epoll_pwait),