usr.bin.gnunet-helper-nat-server 973 B

1234567891011121314151617181920212223242526272829303132
  1. # ------------------------------------------------------------------
  2. #
  3. # Copyright (C) 2011 Jacob Appelbaum <jacob@appelbaum.net>
  4. #
  5. # This program is free software; you can redistribute it and/or
  6. # modify it under the terms of version 2 of the GNU General Public
  7. # License published by the Free Software Foundation.
  8. #
  9. # SPDX-License-Identifier: GPL2.0
  10. #
  11. # This should be placed in /etc/apparmor.d/usr.sbin.gnunet-helper-nat-server
  12. # This profile may be a reasonable starting point for other NAT helpers.
  13. #
  14. # ------------------------------------------------------------------
  15. #include <tunables/global>
  16. /usr/bin/gnunet-helper-nat-server {
  17. #include <abstractions/base>
  18. #include <abstractions/consoles>
  19. # Allow these
  20. capability net_raw,
  21. capability setuid,
  22. network inet raw,
  23. network inet dgram, # UDP IPv4
  24. # Deny these
  25. deny network inet6 stream, # TCP IPv6
  26. deny network inet6 dgram, # UDP IPv6
  27. # Deny everything else by default with AppArmor
  28. }