projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3fdbbc
)
virtiofsd: Add _llseek to the seccomp whitelist
author
Greg Kurz
<groug@kaod.org>
Thu, 21 Jan 2021 17:15:40 +0000
(18:15 +0100)
committer
Dr. David Alan Gilbert
<dgilbert@redhat.com>
Thu, 4 Feb 2021 17:49:17 +0000
(17:49 +0000)
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>
tools/virtiofsd/passthrough_seccomp.c
patch
|
blob
|
history
diff --git
a/tools/virtiofsd/passthrough_seccomp.c
b/tools/virtiofsd/passthrough_seccomp.c
index a60d7da4b4e27cc32877da9e9df423c83ef2025e..1ecf5bf318b32208a5678535d07c43031cb80494 100644
(file)
--- 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),