diff options
author | Greg Kurz <groug@kaod.org> | 2021-01-21 18:15:40 +0100 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2021-02-04 17:49:17 +0000 |
commit | 62124e5080e6f49f294caad60fbee26cc2d39d8f (patch) | |
tree | ad9cb5170991706a938d3e0646ef6eb1ce04c4f9 /tools/virtiofsd/passthrough_seccomp.c | |
parent | a3fdbbc7f271bff7d53d0501b29d910ece0b3789 (diff) | |
download | qemu-62124e5080e6f49f294caad60fbee26cc2d39d8f.zip |
virtiofsd: Add _llseek to the seccomp whitelist
This is how glibc implements lseek(2) on POWER.
BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1917692
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <20210121171540.1449777-1-groug@kaod.org>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'tools/virtiofsd/passthrough_seccomp.c')
-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 a60d7da4b4..1ecf5bf318 100644 --- a/tools/virtiofsd/passthrough_seccomp.c +++ b/tools/virtiofsd/passthrough_seccomp.c @@ -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), |