Skip to content

Commit

Permalink
virtiofsd: Add restart_syscall to the seccomp whitelist
Browse files Browse the repository at this point in the history
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 <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Dr. David Alan Gilbert <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Dr. David Alan Gilbert <[email protected]>
  • Loading branch information
gkurz authored and dagrh committed Feb 4, 2021
1 parent 62124e5 commit cf269ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/virtiofsd/passthrough_seccomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit cf269ff

Please sign in to comment.