logo

apparmor.d

Unnamed repository; edit this file 'description' to name the repository. git clone https://hacktivis.me/git/apparmor.d.git

usr.sbin.traceroute (1074B)


  1. # ------------------------------------------------------------------
  2. #
  3. # Copyright (C) 2002-2009 Novell/SUSE
  4. # Copyright (C) 2010 Canonical Ltd.
  5. #
  6. # This program is free software; you can redistribute it and/or
  7. # modify it under the terms of version 2 of the GNU General Public
  8. # License published by the Free Software Foundation.
  9. #
  10. # ------------------------------------------------------------------
  11. abi <abi/3.0>,
  12. include <tunables/global>
  13. profile traceroute /usr/{{bin,sbin}/traceroute,bin/linux-traceroute,bin/traceroute.db} {
  14. include <abstractions/base>
  15. include <abstractions/consoles>
  16. include <abstractions/nameservice>
  17. deny capability net_admin, # noisy setsockopt() calls
  18. capability net_raw,
  19. network inet raw,
  20. network inet6 raw,
  21. /usr/{{bin,sbin}/traceroute,bin/linux-traceroute,bin/traceroute.db} mrix,
  22. @{PROC}/net/route r,
  23. @{PROC}/sys/net/ipv4/{tcp_ecn,tcp_sack,tcp_timestamps,tcp_window_scaling} r,
  24. # Site-specific additions and overrides. See local/README for details.
  25. include if exists <local/usr.sbin.traceroute>
  26. }