logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

chrony-4.2-seccomp-rseq.patch (1111B)


  1. https://git.tuxfamily.org/chrony/chrony.git/patch/?id=8bb8f15a7d049ed26c69d95087065b381f76ec4d
  2. From: Michael Hudson-Doyle <michael.hudson@canonical.com>
  3. Date: Wed, 9 Feb 2022 09:06:13 +0100
  4. Subject: sys_linux: allow rseq in seccomp filter
  5. Libc 2.35 will use rseq syscalls [1][2] by default and thereby
  6. break chrony in seccomp isolation.
  7. [1]: https://www.efficios.com/blog/2019/02/08/linux-restartable-sequences/
  8. [2]: https://sourceware.org/pipermail/libc-alpha/2022-February/136040.html
  9. Tested-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
  10. Reviewed-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
  11. Signed-off-by: Michael Hudson-Doyle <michael.hudson@canonical.com>
  12. Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
  13. --- a/sys_linux.c
  14. +++ b/sys_linux.c
  15. @@ -497,6 +497,9 @@ SYS_Linux_EnableSystemCallFilter(int level, SYS_ProcessContext context)
  16. SCMP_SYS(getrlimit),
  17. SCMP_SYS(getuid),
  18. SCMP_SYS(getuid32),
  19. +#ifdef __NR_rseq
  20. + SCMP_SYS(rseq),
  21. +#endif
  22. SCMP_SYS(rt_sigaction),
  23. SCMP_SYS(rt_sigreturn),
  24. SCMP_SYS(rt_sigprocmask),
  25. cgit v0.10.2