logo

apparmor.d

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

nvidia_modprobe (1212B)


  1. # vim:syntax=apparmor
  2. abi <abi/3.0>,
  3. include <tunables/global>
  4. profile nvidia_modprobe {
  5. include <abstractions/base>
  6. # Capabilities
  7. capability chown,
  8. capability mknod,
  9. capability setuid,
  10. capability sys_admin,
  11. # Main executable
  12. /usr/bin/nvidia-modprobe mr,
  13. # Other executables
  14. /usr/bin/kmod Cx -> kmod,
  15. # System files
  16. /dev/nvidia-modeset w,
  17. /dev/nvidia-uvm w,
  18. /dev/nvidia-uvm-tools w,
  19. @{sys}/bus/pci/devices/ r,
  20. @{sys}/devices/pci[0-9]*/**/config r,
  21. @{PROC}/devices r,
  22. @{PROC}/driver/nvidia/params r,
  23. @{PROC}/modules r,
  24. @{PROC}/sys/kernel/modprobe r,
  25. # Child profiles
  26. profile kmod {
  27. include <abstractions/base>
  28. # Capabilities
  29. capability sys_module,
  30. # Main executable
  31. /usr/bin/kmod mrix,
  32. # Other executables
  33. /{,usr/}bin/{,ba,da}sh ix,
  34. # System files
  35. /etc/modprobe.d/{,*.conf} r,
  36. /etc/nvidia/{current,legacy*,tesla*}/*.conf r,
  37. @{sys}/module/ipmi_devintf/initstate r,
  38. @{sys}/module/ipmi_msghandler/initstate r,
  39. @{sys}/module/{drm,nvidia}/initstate r,
  40. @{PROC}/cmdline r,
  41. }
  42. # Site-specific additions and overrides. See local/README for details.
  43. include if exists <local/nvidia_modprobe>
  44. }