logo

apparmor.d

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

mesa (1238B)


  1. # vim:syntax=apparmor
  2. # Rules for Mesa implementation of the OpenGL API
  3. abi <abi/3.0>,
  4. # System files
  5. /dev/dri/ r, # libGLX_mesa.so calls drmGetDevice2()
  6. # Needed to check if the kernel supports the i915 perf interface
  7. # (src/intel/perf/gen_perf.c, load_oa_metrics())
  8. @{PROC}/sys/dev/i915/perf_stream_paranoid r,
  9. @{sys}/devices/pci[0-9]*/**/{revision,config} r,
  10. # User files
  11. owner @{HOME}/.cache/ w, # if user clears all caches
  12. owner @{HOME}/.cache/mesa_shader_cache/ rw,
  13. owner @{HOME}/.cache/mesa_shader_cache/index rw,
  14. owner @{HOME}/.cache/mesa_shader_cache/[a-f0-9][a-f0-9]/ rw,
  15. owner @{HOME}/.cache/mesa_shader_cache/[a-f0-9][a-f0-9]/[0-9a-f]* rw,
  16. owner @{HOME}/.cache/mesa_shader_cache/[a-f0-9][a-f0-9]/[0-9a-f]*.tmp rwk,
  17. # Fallback location when @{HOME}/.cache is not available
  18. owner /tmp/Temp-[a-f0-9]*/mesa_shader_cache/ rw,
  19. owner /tmp/Temp-[a-f0-9]*/mesa_shader_cache/index rw,
  20. owner /tmp/Temp-[a-f0-9]*/mesa_shader_cache/[a-f0-9][a-f0-9]/ rw,
  21. owner /tmp/Temp-[a-f0-9]*/mesa_shader_cache/[a-f0-9][a-f0-9]/[0-9a-f]* rw,
  22. owner /tmp/Temp-[a-f0-9]*/mesa_shader_cache/[a-f0-9][a-f0-9]/[0-9a-f]*.tmp rwk,
  23. # Include additions to the abstraction
  24. include if exists <abstractions/mesa.d>