You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
732 B

  1. From 995cf19fbef0b10dbcf1dd8d6382cec9194e08c5 Mon Sep 17 00:00:00 2001
  2. From: Darren Tucker <dtucker@dtucker.net>
  3. Date: Sat, 26 Feb 2022 14:06:14 +1100
  4. Subject: [PATCH] Allow ppoll_time64 in seccomp sandbox.
  5. Should fix sandbox violations on (some? at least i386 and armhf) 32bit
  6. Linux platforms. Patch from chutzpahu at gentoo.org and cjwatson at
  7. debian.org via bz#3396.
  8. ---
  9. sandbox-seccomp-filter.c | 3 +++
  10. 1 file changed, 3 insertions(+)
  11. --- a/sandbox-seccomp-filter.c
  12. +++ b/sandbox-seccomp-filter.c
  13. @@ -276,6 +276,9 @@ static const struct sock_filter preauth_
  14. #ifdef __NR_ppoll
  15. SC_ALLOW(__NR_ppoll),
  16. #endif
  17. +#ifdef __NR_ppoll_time64
  18. + SC_ALLOW(__NR_ppoll_time64),
  19. +#endif
  20. #ifdef __NR_poll
  21. SC_ALLOW(__NR_poll),
  22. #endif