logo

apparmor.d

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

lsb_release (1379B)


  1. # Note: This profile does not specify an attachment path because it is
  2. # intended to be used only via "Px -> lsb_release" exec transitions from
  3. # other profiles. We want to confine the lsb_release(1) utility when it
  4. # is invoked from other confined applications, but not when it is used
  5. # in regular (unconfined) shell scripts or run directly by the user.
  6. abi <abi/3.0>,
  7. include <tunables/global>
  8. # Do not attach to /usr/bin/lsb_release by default
  9. profile lsb_release {
  10. include <abstractions/base>
  11. include <abstractions/python>
  12. owner @{PROC}/@{pid}/fd/ r,
  13. /dev/tty rw,
  14. /usr/bin/lsb_release r,
  15. /usr/bin/python3.{1,}[0-9] mr,
  16. /etc/debian_version r,
  17. /etc/default/apport r,
  18. /etc/dpkg/origins/** r,
  19. /etc/lsb-release r,
  20. /etc/lsb-release.d/ r,
  21. /{usr/,}bin/bash ixr,
  22. /{usr/,}bin/dash ixr,
  23. /usr/bin/basename ixr,
  24. /usr/bin/dpkg-query ixr,
  25. /usr/bin/cat ixr,
  26. /usr/bin/cut ixr,
  27. /usr/bin/getopt ixr,
  28. /usr/bin/sed ixr,
  29. /usr/bin/tr ixr,
  30. # TODO - many more permissions needed for this to work
  31. deny /usr/bin/apt-cache x,
  32. /usr/bin/ r,
  33. /usr/include/python*/pyconfig.h r,
  34. /usr/share/distro-info/** r,
  35. /usr/share/dpkg/** r,
  36. /usr/share/terminfo/** r,
  37. /var/lib/dpkg/** r,
  38. # file_inherit
  39. deny /tmp/gtalkplugin.log w,
  40. # Site-specific additions and overrides. See local/README for details.
  41. include if exists <local/lsb_release>
  42. }