0001-file-seccomp-fstatat64-musl.patch 874 B

1234567891011121314151617181920212223242526272829303132
  1. From 8c13923a8e17a02be0989649b2edc20124816729 Mon Sep 17 00:00:00 2001
  2. From: Mike Gilbert <floppym@gentoo.org>
  3. Date: Tue, 15 Jun 2021 16:08:22 -0400
  4. Subject: [PATCH] seccomp: undef fstatat64 to avoid build failure on musl
  5. sys/stat.h in musl does this:
  6. #define fstatat64 fstatat
  7. Counteract this with an #undef.
  8. Bug: https://bugs.gentoo.org/789336
  9. Bug: https://bugs.astron.com/view.php?id=473
  10. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
  11. Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
  12. Upstream: N/A under discussion
  13. ---
  14. src/seccomp.c | 1 +
  15. 1 file changed, 1 insertion(+)
  16. diff --git a/src/seccomp.c b/src/seccomp.c
  17. index 5a39ee45..d2a1139a 100644
  18. --- a/src/seccomp.c
  19. +++ b/src/seccomp.c
  20. @@ -205,6 +205,7 @@ enable_sandbox_full(void)
  21. #endif
  22. ALLOW_RULE(fstat64);
  23. #ifdef __NR_fstatat64
  24. +#undef fstatat64
  25. ALLOW_RULE(fstatat64);
  26. #endif
  27. ALLOW_RULE(futex);