diff options
author | Greg Kurz | 2021-02-01 20:33:05 +0100 |
---|---|---|
committer | Dr. David Alan Gilbert | 2021-02-04 18:50:08 +0100 |
commit | cf269ff8032392bbdd700e7bfd21823ad9eee3a9 (patch) | |
tree | dc26eda04870294a9814ae4414faf5e95a6564dc | |
parent | virtiofsd: Add _llseek to the seccomp whitelist (diff) | |
download | qemu-cf269ff8032392bbdd700e7bfd21823ad9eee3a9.tar.gz qemu-cf269ff8032392bbdd700e7bfd21823ad9eee3a9.tar.xz qemu-cf269ff8032392bbdd700e7bfd21823ad9eee3a9.zip |
virtiofsd: Add restart_syscall to the seccomp whitelist
This is how linux restarts some system calls after SIGSTOP/SIGCONT.
This is needed to avoid virtiofsd termination when resuming execution
under GDB for example.
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <20210201193305.136390-1-groug@kaod.org>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
-rw-r--r-- | tools/virtiofsd/passthrough_seccomp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/virtiofsd/passthrough_seccomp.c b/tools/virtiofsd/passthrough_seccomp.c index 1ecf5bf318..ea852e2e33 100644 --- a/tools/virtiofsd/passthrough_seccomp.c +++ b/tools/virtiofsd/passthrough_seccomp.c @@ -89,6 +89,7 @@ static const int syscall_whitelist[] = { SCMP_SYS(renameat), SCMP_SYS(renameat2), SCMP_SYS(removexattr), + SCMP_SYS(restart_syscall), SCMP_SYS(rt_sigaction), SCMP_SYS(rt_sigprocmask), SCMP_SYS(rt_sigreturn), |