Blame SOURCES/chrony-seccomp.patch

fd6d13
commit bbbd80bf03223f181d4abf5c8e5fe6136ab6129a
fd6d13
Author: Miroslav Lichvar <mlichvar@redhat.com>
fd6d13
Date:   Mon Aug 9 11:48:21 2021 +0200
fd6d13
fd6d13
    sys_linux: allow clone3 and pread64 in seccomp filter
fd6d13
    
fd6d13
    These seem to be needed with the latest glibc.
fd6d13
fd6d13
diff --git a/sys_linux.c b/sys_linux.c
fd6d13
index 50c08431..2b53f722 100644
fd6d13
--- a/sys_linux.c
fd6d13
+++ b/sys_linux.c
fd6d13
@@ -503,6 +503,9 @@ SYS_Linux_EnableSystemCallFilter(int level, SYS_ProcessContext context)
fd6d13
 
fd6d13
     /* Process */
fd6d13
     SCMP_SYS(clone),
fd6d13
+#ifdef __NR_clone3
fd6d13
+    SCMP_SYS(clone3),
fd6d13
+#endif
fd6d13
     SCMP_SYS(exit),
fd6d13
     SCMP_SYS(exit_group),
fd6d13
     SCMP_SYS(getpid),
fd6d13
@@ -595,6 +598,7 @@ SYS_Linux_EnableSystemCallFilter(int level, SYS_ProcessContext context)
fd6d13
 #ifdef __NR_ppoll_time64
fd6d13
     SCMP_SYS(ppoll_time64),
fd6d13
 #endif
fd6d13
+    SCMP_SYS(pread64),
fd6d13
     SCMP_SYS(pselect6),
fd6d13
 #ifdef __NR_pselect6_time64
fd6d13
     SCMP_SYS(pselect6_time64),