logo

apparmor.d

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

usr.bin.gpg (1403B)


  1. # Copyright 2020 Haelwenn (lanodan) Monnier <contact+apparmor.d@hacktivis.me>
  2. # Distributed under the terms of the GNU General Public License v2
  3. #include <tunables/global>
  4. profile /usr/bin/gpg{,2} flags=(complain) {
  5. #include <abstractions/base>
  6. #include <abstractions/consoles>
  7. /{,**} rw,
  8. /usr/bin/gpg{,2} mr,
  9. /dev/tty rw,
  10. /usr/bin/gpg-agent mrix,
  11. /usr/libexec/scdaemon mrcx,
  12. /usr/bin/pinentry-qt mrcx,
  13. @{HOME}/.gnupg/{,**} mrwkl,
  14. audit deny @{HOME}/.ssh/{,**} mrwkl,
  15. audit deny @{HOME}/.mozilla/{,**} mrwkl,
  16. audit deny @{HOME}/.config/{,**} mrwkl,
  17. audit deny @{HOME}/.mutt** mrwkl,
  18. audit deny @{HOME}/.viminfo** mrwkl,
  19. signal receive peer=/usr/bin/gpg{,2}///usr/libexec/scdaemon,
  20. network,
  21. profile /usr/libexec/scdaemon {
  22. #include <abstractions/base>
  23. /usr/libexec/scdaemon mr,
  24. @{HOME}/.gnupg/S.scdaemon mrwk,
  25. @{HOME}/.gnupg/reader_*.status mrwk,
  26. signal send peer=/usr/bin/gpg{,2},
  27. @{PROC}/@{pid}/task/** rw,
  28. @{PROC}/@{pid}/mountinfo rw,
  29. /dev/ r,
  30. /dev/bus/usb/{,**} rw,
  31. /sys/bus/ r,
  32. /sys/bus/usb/{,**} rw,
  33. /sys/devices/{,**} r,
  34. /etc/udev/udev.conf r,
  35. /run/udev/data/** r,
  36. /sys/class/ r,
  37. }
  38. profile /usr/bin/pinentry-qt {
  39. #include <abstractions/base>
  40. #include <abstractions/X>
  41. #include <abstractions/wayland>
  42. #include <abstractions/fonts>
  43. #include <abstractions/mesa>
  44. #include <abstractions/qt5>
  45. /usr/bin/pinentry-qt mr,
  46. }
  47. }