mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-16 22:39:01 +00:00
This series is based on https://lists.gnu.org/archive/html/qemu-devel/2021-02/msg01787.html, and was kindly brought up by David Gilbert. Fixes: #1361 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
32 lines
1018 B
Diff
32 lines
1018 B
Diff
From 7670d5d5061a8d959a367bdd9d86b6b97a3bf4e9 Mon Sep 17 00:00:00 2001
|
|
From: Greg Kurz <groug@kaod.org>
|
|
Date: Thu, 4 Feb 2021 20:23:16 +0100
|
|
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>
|
|
---
|
|
tools/virtiofsd/seccomp.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/tools/virtiofsd/seccomp.c b/tools/virtiofsd/seccomp.c
|
|
index 7f93fe87..57642ff8 100644
|
|
--- a/tools/virtiofsd/seccomp.c
|
|
+++ b/tools/virtiofsd/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),
|
|
--
|
|
2.29.2
|
|
|