Skip to content

Commit

Permalink
virtiofsd: Add _llseek to the seccomp whitelist
Browse files Browse the repository at this point in the history
This is how glibc implements lseek(2) on POWER.

BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1917692
Signed-off-by: Greg Kurz <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Dr. David Alan Gilbert <[email protected]>
Signed-off-by: Dr. David Alan Gilbert <[email protected]>
  • Loading branch information
gkurz authored and dagrh committed Feb 4, 2021
1 parent a3fdbbc commit 62124e5
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 @@ -65,6 +65,7 @@ static const int syscall_whitelist[] = {
SCMP_SYS(linkat),
SCMP_SYS(listxattr),
SCMP_SYS(lseek),
SCMP_SYS(_llseek), /* For POWER */
SCMP_SYS(madvise),
SCMP_SYS(mkdirat),
SCMP_SYS(mknodat),
Expand Down

0 comments on commit 62124e5

Please sign in to comment.