logo

apparmor.d

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

gio-open (1546B)


  1. # vim:syntax=apparmor
  2. abi <abi/3.0>,
  3. # This abstraction is designed to be used in a child profile to limit what
  4. # confined application can invoke via gio helper.
  5. #
  6. # NOTE: most likely you want to use xdg-open abstraction instead for better
  7. # portability across desktop environments, unless you are sure that confined
  8. # application only uses /usr/bin/gio directly.
  9. #
  10. # Usage example:
  11. #
  12. # ```
  13. # profile foo /usr/bin/foo {
  14. # ...
  15. # /usr/bin/gio rPx -> foo//gio-open,
  16. # ...
  17. # } # end of main profile
  18. #
  19. # # out-of-line child profile
  20. # profile foo//gio-open {
  21. # include <abstractions/gio-open>
  22. #
  23. # # needed for ubuntu-* abstractions
  24. # include <abstractions/ubuntu-helpers>
  25. #
  26. # # Only allow to handle http[s]: and mailto: links
  27. # include <abstractions/ubuntu-browsers>
  28. # include <abstractions/ubuntu-email>
  29. #
  30. # # < add additional allowed applications here >
  31. # }
  32. include <abstractions/base>
  33. include <abstractions/dbus-session-strict>
  34. # Main executables
  35. /usr/bin/gio rix,
  36. /usr/bin/gio-launch-desktop ix, # for OpenSUSE
  37. /usr/lib/@{multiarch}/glib-[0-9]*/gio-launch-desktop ix,
  38. # System files
  39. /etc/gnome/defaults.list r,
  40. /usr/share/mime/* r,
  41. /usr/share/{,*/}applications/{,**} r,
  42. /var/cache/gio-[0-9]*.[0-9]*/gnome-mimeapps.list r,
  43. /var/lib/snapd/desktop/applications/{,**} r,
  44. # User files
  45. owner @{HOME}/.config/mimeapps.list r,
  46. owner @{HOME}/.local/share/applications/{,*.desktop} r,
  47. owner @{PROC}/@{pid}/fd/ r,
  48. # Include additions to the abstraction
  49. include if exists <abstractions/gio-open.d>