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.

44 lines
1.3 KiB

  1. From ad45e9b89ee18bbfeff0ed45da2c243ac17acfe6 Mon Sep 17 00:00:00 2001
  2. From: "W.C.A. Wijngaards" <wouter@nlnetlabs.nl>
  3. Date: Fri, 13 Aug 2021 09:27:58 +0200
  4. Subject: [PATCH] - Fix for #431: Squelch permission denied errors for udp
  5. connect, and udp send, they are visible at higher verbosity settings.
  6. ---
  7. doc/Changelog | 2 ++
  8. services/outside_network.c | 1 +
  9. util/netevent.c | 1 +
  10. 3 files changed, 4 insertions(+)
  11. # diff --git a/doc/Changelog b/doc/Changelog
  12. # index 62c747c85..1cd0f3bad 100644
  13. # --- a/doc/Changelog
  14. # +++ b/doc/Changelog
  15. # @@ -1,5 +1,7 @@
  16. # 13 August 2021: Wouter
  17. # - Support using system-wide crypto policies.
  18. # + - Fix for #431: Squelch permission denied errors for udp connect,
  19. # + and udp send, they are visible at higher verbosity settings.
  20. # 12 August 2021: George
  21. # - Merge PR #514, from ziollek: Docker environment for run tests.
  22. --- a/services/outside_network.c
  23. +++ b/services/outside_network.c
  24. @@ -1962,6 +1962,7 @@ static int udp_connect_needs_log(int err
  25. case ENETDOWN:
  26. # endif
  27. case EPERM:
  28. + case EACCES:
  29. if(verbosity >= VERB_ALGO)
  30. return 1;
  31. return 0;
  32. --- a/util/netevent.c
  33. +++ b/util/netevent.c
  34. @@ -300,6 +300,7 @@ udp_send_errno_needs_log(struct sockaddr
  35. case ENETDOWN:
  36. # endif
  37. case EPERM:
  38. + case EACCES:
  39. if(verbosity < VERB_ALGO)
  40. return 0;
  41. default: