Blame SOURCES/chrony-seccomp.patch

777498
commit 8bb8f15a7d049ed26c69d95087065b381f76ec4d
777498
Author: Michael Hudson-Doyle <michael.hudson@canonical.com>
777498
Date:   Wed Feb 9 09:06:13 2022 +0100
fd6d13
777498
    sys_linux: allow rseq in seccomp filter
fd6d13
    
777498
    Libc 2.35 will use rseq syscalls [1][2] by default and thereby
777498
    break chrony in seccomp isolation.
777498
    
777498
    [1]: https://www.efficios.com/blog/2019/02/08/linux-restartable-sequences/
777498
    [2]: https://sourceware.org/pipermail/libc-alpha/2022-February/136040.html
777498
    
777498
    Tested-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
777498
    Reviewed-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
777498
    Signed-off-by: Michael Hudson-Doyle <michael.hudson@canonical.com>
777498
    Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
fd6d13
fd6d13
diff --git a/sys_linux.c b/sys_linux.c
777498
index 9cab2efa..cc3c9311 100644
fd6d13
--- a/sys_linux.c
fd6d13
+++ b/sys_linux.c
777498
@@ -497,6 +497,9 @@ SYS_Linux_EnableSystemCallFilter(int level, SYS_ProcessContext context)
777498
     SCMP_SYS(getrlimit),
777498
     SCMP_SYS(getuid),
777498
     SCMP_SYS(getuid32),
777498
+#ifdef __NR_rseq
777498
+    SCMP_SYS(rseq),
fd6d13
+#endif
777498
     SCMP_SYS(rt_sigaction),
777498
     SCMP_SYS(rt_sigreturn),
777498
     SCMP_SYS(rt_sigprocmask),