logo

apparmor.d

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

opencl-nvidia (895B)


  1. # vim:syntax=apparmor
  2. abi <abi/3.0>,
  3. # OpenCL access requirements for NVIDIA implementation
  4. include <abstractions/nvidia>
  5. include <abstractions/opencl-common>
  6. # Executables
  7. # https://github.com/NVIDIA/nvidia-modprobe
  8. # This setuid executable is used to create various device files and load the
  9. # the nvidia kernel module.
  10. /usr/bin/nvidia-modprobe Px -> nvidia_modprobe,
  11. # System files
  12. # libnvidia-opencl.so rules:
  13. /dev/nvidia-uvm rw,
  14. /dev/nvidia-uvm-tools rw,
  15. @{sys}/devices/pci[0-9]*/**/config r,
  16. @{sys}/devices/system/memory/block_size_bytes r,
  17. /usr/share/nvidia/** r,
  18. @{PROC}/devices r,
  19. @{PROC}/sys/vm/mmap_min_addr r,
  20. # User files
  21. owner @{HOME}/.nv/ComputeCache/ w,
  22. owner @{HOME}/.nv/ComputeCache/** rw,
  23. owner @{HOME}/.nv/ComputeCache/index rwk,
  24. # Include additions to the abstraction
  25. include if exists <abstractions/opencl-nvidia.d>