logo

apparmor.d

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

exo-open (1921B)


  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 exo-open 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/exo-open directly.
  9. #
  10. # Usage example:
  11. #
  12. # ```
  13. # profile foo /usr/bin/foo {
  14. # ...
  15. # /usr/bin/exo-open rPx -> foo//exo-open,
  16. # ...
  17. # } # end of main profile
  18. #
  19. # # out-of-line child profile
  20. # profile foo//exo-open {
  21. # include <abstractions/exo-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 if accessibility access is considered as required
  31. # # (for message box in case exo-open fails)
  32. # include <abstractions/dbus-accessibility>
  33. #
  34. # # < add additional allowed applications here >
  35. # }
  36. include <abstractions/X>
  37. include <abstractions/audio> # for alert messages
  38. include <abstractions/base>
  39. include <abstractions/dbus-session-strict>
  40. include <abstractions/gnome>
  41. # Main executables
  42. /usr/bin/exo-open rix,
  43. /usr/lib{32,64,/@{multiarch}}/xfce4/exo-[0-9]/exo-helper-[0-9] ix,
  44. # Other executables
  45. /{,usr/}bin/which rix,
  46. # System files
  47. /etc/xdg/{,xdg-*/}xfce4/helpers.rc r,
  48. /etc/xfce4/defaults.list r, # TODO: move into xfce4 abstraction?
  49. /usr/share/sounds/freedesktop/** r, # for message box alert sound
  50. /usr/share/xfce4/helpers/*.desktop r,
  51. /usr/share/{xfce{,4},xubuntu}/applications/{,*.list} r,
  52. # User files
  53. owner @{PROC}/@{pid}/fd/ r,
  54. owner @{HOME}/.config/xfce4/helpers.rc r,
  55. owner @{HOME}/.local/share/xfce4/helpers/*.desktop r,
  56. # Include additions to the abstraction
  57. include if exists <abstractions/exo-open.d>