logo

apparmor.d

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

X (2063B)


  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/dri-common>
  14. # .ICEauthority files required for X authentication, per user
  15. owner @{HOME}/.ICEauthority r,
  16. owner @{run}/user/*/ICEauthority r,
  17. # .Xauthority files required for X connections, per user
  18. owner @{HOME}/.Xauthority r,
  19. owner @{HOME}/.local/share/sddm/.Xauthority r,
  20. owner @{run}/gdm{,3}/*/database r,
  21. owner @{run}/lightdm/authority/[0-9]* r,
  22. owner @{run}/lightdm/*/xauthority r,
  23. owner @{run}/user/*/gdm/Xauthority r,
  24. owner @{run}/user/*/X11/Xauthority r,
  25. owner @{run}/user/*/xauth_* r,
  26. # the unix socket to use to connect to the display
  27. /tmp/.X11-unix/* rw,
  28. unix (connect, receive, send)
  29. type=stream
  30. peer=(addr="@/tmp/.X11-unix/X[0-9]*"),
  31. unix (connect, receive, send)
  32. type=stream
  33. peer=(addr="@/tmp/.ICE-unix/[0-9]*"),
  34. /usr/include/X11/ r,
  35. /usr/include/X11/** r,
  36. # The X tree changes and is large -- grant read access to the whole thing
  37. /usr/X11R6/** r,
  38. /usr/share/X11/ r,
  39. /usr/share/X11/** r,
  40. /usr/X11R6/**.so* mr,
  41. # EGL
  42. /usr/lib/@{multiarch}/egl/*.so* mr,
  43. # Xcompose
  44. owner @{HOME}/.XCompose r,
  45. /var/cache/libx11/compose/* r,
  46. deny /var/cache/libx11/compose/* wlk,
  47. # mouse themes
  48. /etc/X11/cursors/ r,
  49. /etc/X11/cursors/** r,
  50. /usr/share/cursors/xorg-x11/ r,
  51. /usr/share/cursors/xorg-x11/** r,
  52. # Xwayland
  53. owner @{run}/user/*/.mutter-Xwaylandauth.* r,
  54. # Include additions to the abstraction
  55. include if exists <abstractions/X.d>