logo

apparmor.d

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

gnome (3789B)


  1. # vim:syntax=apparmor
  2. # ------------------------------------------------------------------
  3. #
  4. # Copyright (C) 2002-2009 Novell/SUSE
  5. # Copyright (C) 2009-2011 Canonical Ltd.
  6. #
  7. # This program is free software; you can redistribute it and/or
  8. # modify it under the terms of version 2 of the GNU General Public
  9. # License published by the Free Software Foundation.
  10. #
  11. # ------------------------------------------------------------------
  12. abi <abi/3.0>,
  13. include <abstractions/base>
  14. include <abstractions/fonts>
  15. include <abstractions/X>
  16. include <abstractions/freedesktop.org>
  17. include <abstractions/xdg-desktop>
  18. include <abstractions/user-tmp>
  19. include <abstractions/wayland>
  20. # systemwide gtk defaults
  21. /etc/gnome/gtkrc* r,
  22. /etc/gtk/* r,
  23. /usr/lib{,32,64}/gtk/** mr,
  24. /usr/lib/@{multiarch}/gtk/** mr,
  25. /usr/lib{,32,64}/gtk-[0-9]*/** mr,
  26. /usr/lib/@{multiarch}/gtk-[0-9]*/** mr,
  27. /usr/share/themes/ r,
  28. /usr/share/themes/** r,
  29. /usr/share/gtk-3.0/settings.ini r,
  30. # for gnome 1 applications
  31. /etc/orbitrc r,
  32. # gtk-2 needed some new rights
  33. /etc/fonts/* r,
  34. /etc/gtk-*/* r,
  35. /etc/pango/* r,
  36. /usr/lib{,32,64}/pango/** mr,
  37. /usr/lib{,32,64}/gtk-*/** mr,
  38. /usr/lib{,32,64}/gdk-pixbuf-*/** mr,
  39. /usr/lib/@{multiarch}/pango/** mr,
  40. /usr/lib/@{multiarch}/gtk-*/** mr,
  41. /usr/lib/@{multiarch}/gdk-pixbuf-*/** mr,
  42. # per-user gtk configuration
  43. owner @{HOME}/.config/gtk-3.0/ w,
  44. owner @{HOME}/.config/gtk-3.0/* r,
  45. owner @{HOME}/.gnome/Gnome r,
  46. owner @{HOME}/.gtk r,
  47. owner @{HOME}/.gtkrc r,
  48. owner @{HOME}/.gtkrc-2.0 r,
  49. owner @{HOME}/.gtk-bookmarks r,
  50. owner @{HOME}/.themes/ r,
  51. owner @{HOME}/.themes/** r,
  52. owner @{user_share_dirs}/themes/ r,
  53. owner @{user_share_dirs}/themes/** r,
  54. # for gtk file dialog
  55. owner @{HOME}/.config/gtk-2.0/ w,
  56. owner @{HOME}/.config/gtk-2.0/** r,
  57. owner @{HOME}/.config/gtk-2.0/gtkfilechooser.ini* rw,
  58. # from evolution-mail
  59. owner @{HOME}/.gconfd/lock/* r,
  60. owner @{HOME}/.gnome/application-info r,
  61. # per-user font business
  62. owner @{HOME}/.fonts.cache-* rwl,
  63. # GtkComposeTable
  64. owner @{HOME}/.cache/gtk-3.0/** r,
  65. # icon caches
  66. /var/cache/**/icon-theme.cache r,
  67. /usr/share/**/icon-theme.cache r,
  68. # GLib schemas
  69. /usr/{local/,}share/glib-[0-9]*/schemas/ r,
  70. /usr/{local/,}share/glib-[0-9]*/schemas/** r,
  71. # GLib / dconf settings
  72. owner @{HOME}/.config/glib-2.0/settings/keyfile rw,
  73. # gnome VFS modules
  74. /etc/gnome-vfs-2.0/modules/ r,
  75. /etc/gnome-vfs-2.0/modules/* r,
  76. /usr/lib/gnome-vfs-2.0/modules/*.so mr,
  77. /usr/lib/@{multiarch}/gnome-vfs-2.0/modules/*.so mr,
  78. # gvfs
  79. /usr/share/gvfs/remote-volume-monitors/ r,
  80. /usr/share/gvfs/remote-volume-monitors/* r,
  81. @{PROC}/@{pid}/mounts r,
  82. @{run}/mount/utab r,
  83. # printing
  84. /etc/papersize r,
  85. /etc/cups/lpoptions r,
  86. /usr/share/cups/charmaps/** r,
  87. # holds MIT-MAGIC-COOKIE for gnome
  88. owner @{run}/gdm/auth*/database r,
  89. # mime-types
  90. /etc/gnome/defaults.list r,
  91. /etc/xdg/{,*-}mimeapps.list r,
  92. /usr/share/gnome/applications/ r,
  93. /usr/share/gnome/applications/mimeinfo.cache r,
  94. # Allow connecting to the GNOME vfs socket (still need corresponding DBus
  95. # rules)
  96. unix (send, receive, connect)
  97. type=stream
  98. peer=(addr="@/dbus-vfs-daemon/socket-*"),
  99. # Include additions to the abstraction
  100. include if exists <abstractions/gnome.d>