mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-18 15:28:10 +00:00
virtiofs: Add virtiofsd patch that adds time to seccomp
time syscall on seccomp is needed to be able to build virtiofsd successfully. This patch is currently not availabe upstream, so lets add it until it becomes available. Signed-off-by: Salvador Fuentes <salvador.fuentes@intel.com>
This commit is contained in:
26
qemu/patches/virtiofsd/0001-add-time-to-seccomp.patch
Normal file
26
qemu/patches/virtiofsd/0001-add-time-to-seccomp.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
From 2317a63d2acab16be4655ec87542a2bf3d75551b Mon Sep 17 00:00:00 2001
|
||||
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
|
||||
Date: Thu, 26 Sep 2019 18:41:34 +0100
|
||||
Subject: [PATCH] virtiofsd: Add time to seccomp
|
||||
|
||||
Needed by static builds
|
||||
|
||||
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
||||
---
|
||||
contrib/virtiofsd/seccomp.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/contrib/virtiofsd/seccomp.c b/contrib/virtiofsd/seccomp.c
|
||||
index 3b92c6ee13..374bab2bef 100644
|
||||
--- a/contrib/virtiofsd/seccomp.c
|
||||
+++ b/contrib/virtiofsd/seccomp.c
|
||||
@@ -75,6 +75,7 @@ static const int syscall_whitelist[] = {
|
||||
SCMP_SYS(setresuid),
|
||||
SCMP_SYS(set_robust_list),
|
||||
SCMP_SYS(symlinkat),
|
||||
+ SCMP_SYS(time), /* Rarely needed, except on static builds */
|
||||
SCMP_SYS(tgkill),
|
||||
SCMP_SYS(unlinkat),
|
||||
SCMP_SYS(utimensat),
|
||||
--
|
||||
2.21.0
|
Reference in New Issue
Block a user