42a90c4e1c
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Greg Kurz <groug@kaod.org>
|
|
Date: Thu, 4 Feb 2021 18:34:38 +0000
|
|
Subject: [PATCH] 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>
|
|
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
|
---
|
|
tools/virtiofsd/passthrough_seccomp.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/tools/virtiofsd/passthrough_seccomp.c b/tools/virtiofsd/passthrough_seccomp.c
|
|
index 11623f56f2..bb8ef5b17f 100644
|
|
--- a/tools/virtiofsd/passthrough_seccomp.c
|
|
+++ b/tools/virtiofsd/passthrough_seccomp.c
|
|
@@ -68,6 +68,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),
|