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>
This commit is contained in:
Greg Kurz 2021-02-01 20:33:05 +01:00 committed by Dr. David Alan Gilbert
parent 62124e5080
commit cf269ff803

View File

@ -89,6 +89,7 @@ static const int syscall_whitelist[] = {
SCMP_SYS(renameat), SCMP_SYS(renameat),
SCMP_SYS(renameat2), SCMP_SYS(renameat2),
SCMP_SYS(removexattr), SCMP_SYS(removexattr),
SCMP_SYS(restart_syscall),
SCMP_SYS(rt_sigaction), SCMP_SYS(rt_sigaction),
SCMP_SYS(rt_sigprocmask), SCMP_SYS(rt_sigprocmask),
SCMP_SYS(rt_sigreturn), SCMP_SYS(rt_sigreturn),