mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 16:03:51 +01:00
feat(profile): start using child-modprobe-nvidia.
This commit is contained in:
parent
6cbaefc4d5
commit
1919d90770
@ -4,8 +4,6 @@
|
||||
|
||||
include <abstractions/graphics>
|
||||
|
||||
@{bin}/nvidia-modprobe Px -> nvidia_modprobe,
|
||||
|
||||
/dev/char/@{dynamic}:@{int} w, # For dynamic assignment range 234 to 254, 384 to 511
|
||||
/dev/nvidia-uvm rw,
|
||||
/dev/nvidia-uvm-tools rw,
|
||||
|
@ -2,6 +2,8 @@
|
||||
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
@{bin}/nvidia-modprobe Px -> child-modprobe-nvidia,
|
||||
|
||||
/usr/share/nvidia/nvidia-application-profiles-* r,
|
||||
|
||||
/etc/nvidia/nvidia-application-profiles-* r,
|
||||
|
@ -30,8 +30,6 @@ profile child-modprobe-nvidia {
|
||||
|
||||
@{bin}/kmod Cx -> kmod,
|
||||
|
||||
# /dev/nvidia-uvm w,
|
||||
# /dev/nvidia-uvm-tools w,
|
||||
@{sys}/bus/pci/devices/ r,
|
||||
@{sys}/devices/@{pci}/config r,
|
||||
|
||||
@ -47,6 +45,8 @@ profile child-modprobe-nvidia {
|
||||
owner /dev/char/195:@{int} w, # Nvidia graphics devices
|
||||
|
||||
/dev/nvidia-modeset w,
|
||||
/dev/nvidia-uvm w,
|
||||
/dev/nvidia-uvm-tools w,
|
||||
/dev/nvidia@{int} rw,
|
||||
/dev/nvidiactl rw,
|
||||
owner /dev/nvidia-caps/ w,
|
||||
|
Loading…
Reference in New Issue
Block a user